X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fgp2x%2Fmenu.c;h=55995b9e7d9063d1c4651eb30fb1a47dfca66382;hb=a39b7867f59194cec12ca3773da6e5e524a52dbf;hp=506b7c44e0218f943e3442dafce9f5fccabd4578;hpb=1b13dae0c45a068382ce2422b1d407ff47374039;p=picodrive.git diff --git a/platform/gp2x/menu.c b/platform/gp2x/menu.c index 506b7c4..55995b9 100644 --- a/platform/gp2x/menu.c +++ b/platform/gp2x/menu.c @@ -124,6 +124,8 @@ static unsigned long wait_for_input_usbjoy(unsigned long interesting, int *joy) // handle only 1 event at a time for (i = 1; i != 0; i <<= 1) if (ret & i) { ret &= i; break; } + // ... but allow select + ret |= inp_prev & GP2X_SELECT; return ret; } @@ -780,7 +782,8 @@ static void key_config_loop(const me_bind_action *opts, int opt_cnt, int player_ draw_key_config(opts, opt_cnt, player_idx, sel); inp = wait_for_input_usbjoy(CONFIGURABLE_KEYS, &joy); // printf("got %08lX from joy %i\n", inp, joy); - if (joy == 0) { + if (joy == 0) + { if (!(inp & GP2X_SELECT)) { prev_select = 0; if(inp & GP2X_UP ) { sel--; if (sel < 0) sel = menu_sel_max; continue; }