notaz.gp2x.de
/
fceu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mmuhack.o path fix, new sound vol level
[fceu.git]
/
drivers
/
gp2x
/
input.c
diff --git
a/drivers/gp2x/input.c
b/drivers/gp2x/input.c
index
e1046bd
..
f554f35
100644
(file)
--- a/
drivers/gp2x/input.c
+++ b/
drivers/gp2x/input.c
@@
-207,7
+207,7
@@
static void FCEUD_UpdateInput(void)
else if (down(VOL_UP))
{
/* wait for at least 10 updates, because user may be just trying to enter menu */
else if (down(VOL_UP))
{
/* wait for at least 10 updates, because user may be just trying to enter menu */
- if (volpushed_frames++ > 10) {
+ if (volpushed_frames++ > 10
&& (volpushed_frames&1)
) {
soundvol++;
if (soundvol > 100) soundvol=100;
//FCEUI_SetSoundVolume(soundvol);
soundvol++;
if (soundvol > 100) soundvol=100;
//FCEUI_SetSoundVolume(soundvol);
@@
-216,7
+216,7
@@
static void FCEUD_UpdateInput(void)
}
else if (down(VOL_DOWN))
{
}
else if (down(VOL_DOWN))
{
- if (volpushed_frames++ > 10) {
+ if (volpushed_frames++ > 10
&& (volpushed_frames&1)
) {
soundvol-=1;
if (soundvol < 0) soundvol=0;
//FCEUI_SetSoundVolume(soundvol);
soundvol-=1;
if (soundvol < 0) soundvol=0;
//FCEUI_SetSoundVolume(soundvol);