This commit is contained in:
twinaphex 2016-09-16 12:43:09 +02:00
parent 247de41ce1
commit 17e78909d5
2 changed files with 7 additions and 8 deletions

View File

@ -553,15 +553,13 @@ unsigned menu_event(retro_input_t input,
if (!menu_input) if (!menu_input)
return 0; return 0;
core_poll();
/* don't run anything first frame, only capture held inputs
* for old_input_state. */
if (input.state) if (input.state)
{ {
if (!first_held) if (!first_held)
{ {
/* don't run anything first frame, only capture held inputs
* for old_input_state. */
first_held = true; first_held = true;
menu_input->delay.timer = initial_held ? 12 : 6; menu_input->delay.timer = initial_held ? 12 : 6;
menu_input->delay.count = 0; menu_input->delay.count = 0;

View File

@ -1549,6 +1549,8 @@ int runloop_iterate(unsigned *sleep_ms)
return -1; return -1;
} }
core_poll();
#ifdef HAVE_MENU #ifdef HAVE_MENU
if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL)) if (menu_driver_ctl(RARCH_MENU_CTL_IS_ALIVE, NULL))
{ {
@ -1566,7 +1568,6 @@ int runloop_iterate(unsigned *sleep_ms)
if (!runloop_check_state(&cmd, &runloop_shader_dir)) if (!runloop_check_state(&cmd, &runloop_shader_dir))
{ {
/* RetroArch has been paused. */ /* RetroArch has been paused. */
core_poll();
*sleep_ms = 10; *sleep_ms = 10;
return 1; return 1;
} }