From b6812cc36554f57ae58e629510aa2a6528245b7b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 6 Aug 2015 03:20:15 +0200 Subject: [PATCH] Refactor away input_flush --- runloop.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/runloop.c b/runloop.c index 0c2cba12ee..7478029589 100644 --- a/runloop.c +++ b/runloop.c @@ -983,18 +983,6 @@ static void rarch_main_cmd_get_state(driver_t *driver, RARCH_CHEAT_TOGGLE); } -static INLINE bool input_flush(void) -{ - retro_input_t input = 0; - - /* If core was paused before entering menu, evoke - * pause toggle to wake it up. */ - if (main_is_paused) - BIT64_SET(input, RARCH_PAUSE_TOGGLE); - - return input; -} - /** * rarch_main_iterate: * @@ -1024,7 +1012,12 @@ int rarch_main_iterate(void) driver->flushing_input = false; if (input) { - input = input_flush(); + input = 0; + + /* If core was paused before entering menu, evoke + * pause toggle to wake it up. */ + if (main_is_paused) + BIT64_SET(input, RARCH_PAUSE_TOGGLE); driver->flushing_input = true; } }