From 136a435c435b2dd54c8bcb76300a9cb9675d16ca Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 21 May 2017 20:42:46 +0200 Subject: [PATCH] Fix keys while in binding mode --- input/input_driver.c | 3 --- retroarch.c | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/input/input_driver.c b/input/input_driver.c index 8fcd5a6949..504f25a1a3 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -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; diff --git a/retroarch.c b/retroarch.c index ae50dc02e6..fe2e6b9009 100644 --- a/retroarch.c +++ b/retroarch.c @@ -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;