Fix keys while in binding mode

This commit is contained in:
twinaphex 2017-05-21 20:42:46 +02:00
parent abd6dcd57f
commit 136a435c43
2 changed files with 6 additions and 3 deletions

View File

@ -823,9 +823,6 @@ uint64_t input_menu_keys_pressed(
}
}
if (menu_driver_is_binding_state())
*trigger_input = 0;
*nonblock_state = input_driver_nonblock_state;
return ret;

View File

@ -2258,6 +2258,11 @@ static enum runloop_state runloop_check_state(
video_driver_get_status(&frame_count, &is_alive, &is_focused);
#ifdef HAVE_MENU
if (menu_driver_is_binding_state())
current_input = 0;
#endif
#ifdef HAVE_OVERLAY
/* Check next overlay */
{
@ -2398,6 +2403,7 @@ static enum runloop_state runloop_check_state(
if (runloop_idle)
return RUNLOOP_STATE_SLEEP;
/* Check game focus toggle */
{
static bool old_pressed = false;