X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fmenu.c;h=db4c9fab7ebea2dfb196e3447a4678dd5223cacc;hb=6af8fee5348a8f90be23eb8f74fcfe2b5b28e60e;hp=4b3201e5ce2a48e8f32f7e7ac199ccbf605ae7dc;hpb=704c0ea3ac613087727884269a02de463bb999a2;p=libpicofe.git diff --git a/gp2x/menu.c b/gp2x/menu.c index 4b3201e..db4c9fa 100644 --- a/gp2x/menu.c +++ b/gp2x/menu.c @@ -46,7 +46,7 @@ static int inp_prevjoy = 0; static unsigned long wait_for_input(unsigned long interesting) { unsigned long ret; - static int repeats = 0, wait = 6; + static int repeats = 0, wait = 20; int release = 0, i; if (repeats == 2) wait = 3; @@ -65,8 +65,10 @@ static unsigned long wait_for_input(unsigned long interesting) if (release || ret != inp_prev) { repeats = 0; - wait = 6; + wait = 20; } + if (wait > 6 && (ret&(GP2X_UP|GP2X_LEFT|GP2X_DOWN|GP2X_RIGHT))) + wait = 6; inp_prev = ret; inp_prevjoy = 0; @@ -1545,6 +1547,7 @@ static void menu_loop_root(void) if (rom_loaded) { if(savestate_menu_loop(1)) continue; + while (gp2x_joystick_read(1) & GP2X_B) usleep(50*1000); engineState = PGS_Running; return; } @@ -1552,6 +1555,7 @@ static void menu_loop_root(void) case MA_MAIN_RESET_GAME: if (rom_loaded) { emu_ResetGame(); + while (gp2x_joystick_read(1) & GP2X_B) usleep(50*1000); engineState = PGS_Running; return; }