mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-18 17:04:34 +00:00
Refactor away input_flush
This commit is contained in:
parent
18af1a74a6
commit
b6812cc365
19
runloop.c
19
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user