X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=menu.c;h=f1b19579c7589aa8646f8d385d01ac598354fc59;hb=e7f580052c03fa3f4603051c1b718be4bd8b2db7;hp=7d2b14e6cb223e63f923b1a66029c768e13188d1;hpb=515ac0b9d2c4d45a465335d54b8c49830914fcea;p=libpicofe.git diff --git a/menu.c b/menu.c index 7d2b14e..f1b1957 100644 --- a/menu.c +++ b/menu.c @@ -1381,7 +1381,8 @@ static void draw_key_config(const me_bind_action *opts, int opt_cnt, int player_ y = (g_menuscreen_h - 4 * me_mfont_h) / 2 - (2 + opt_cnt) * me_mfont_h / 2; if (x < me_mfont_w * 2) x = me_mfont_w * 2; - + if (y < 0) + y = 0; menu_draw_begin(1, 0); if (player_idx >= 0) text_out16(x, y, "Player %i controls", player_idx + 1); @@ -1507,6 +1508,10 @@ static void key_config_loop(const me_bind_action *opts, int opt_cnt, int player_ in_unbind_all(bind_dev_id, opts[sel].mask << mask_shift, bindtype); in_bind_key(bind_dev_id, kc, opts[sel].mask << mask_shift, bindtype, 0); + + // make sure bind change is displayed + if (dev_id != -1) + dev_id = bind_dev_id; } }