X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=platform%2Fgp2x%2Fmenu.c;h=db4c9fab7ebea2dfb196e3447a4678dd5223cacc;hb=385760631f8c75fff0882f8764dbcca9c898e896;hp=05d0903570b66d0858622bcd8da69cf545ed9ce2;hpb=52250671ae14d00dfcb52d137f73c9b565493279;p=picodrive.git diff --git a/platform/gp2x/menu.c b/platform/gp2x/menu.c index 05d0903..db4c9fa 100644 --- a/platform/gp2x/menu.c +++ b/platform/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;