diff --git a/retroarch.c b/retroarch.c index c9b29d290c..b523c6d747 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2582,6 +2582,7 @@ static enum runloop_state runloop_check_state( #endif static bool old_quit_key = false; static bool quit_key = false; + static bool trig_quit_key = false; static bool runloop_exec = false; static bool old_focus = true; bool is_focused = false; @@ -2720,10 +2721,9 @@ static enum runloop_state runloop_check_state( /* Check quit key */ { - bool quit_key = BIT256_GET( + quit_key = BIT256_GET( current_input, RARCH_QUIT_KEY); - bool trig_quit_key = quit_key && !old_quit_key; - + trig_quit_key = quit_key && !old_quit_key; old_quit_key = quit_key; if (time_to_exit(trig_quit_key))