X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Fmenu.c;h=55995b9e7d9063d1c4651eb30fb1a47dfca66382;hb=558d8e1fdd54558c58fe5f661369f76458e1addc;hp=506b7c44e0218f943e3442dafce9f5fccabd4578;hpb=58d18b39d9d999a896ef5df566db33fb9b77e949;p=libpicofe.git diff --git a/gp2x/menu.c b/gp2x/menu.c index 506b7c4..55995b9 100644 --- a/gp2x/menu.c +++ b/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; }