X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drivers%2Fgp2x%2Finput.c;fp=drivers%2Fgp2x%2Finput.c;h=f554f3508f68b4d14bbc4ccd01f24ae91deb7537;hp=e1046bdc20b5219f2e54aa70ac7b6efbbcd99dae;hb=0ab4d38fa6197f853b9111104948df09996aa5dc;hpb=282becab483a0e14ab9d59e659e190f962947220 diff --git a/drivers/gp2x/input.c b/drivers/gp2x/input.c index e1046bd..f554f35 100644 --- 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 */ - if (volpushed_frames++ > 10) { + if (volpushed_frames++ > 10 && (volpushed_frames&1)) { soundvol++; if (soundvol > 100) soundvol=100; //FCEUI_SetSoundVolume(soundvol); @@ -216,7 +216,7 @@ static void FCEUD_UpdateInput(void) } 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);