From d49b7b28b6c97ce6be98a78556ae11b4cf52a779 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 29 Dec 2017 23:12:35 +0100 Subject: [PATCH] input_poll - cleanup --- input/input_driver.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/input/input_driver.c b/input/input_driver.c index 40292440e5..a0bd3a3fa7 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -566,11 +566,14 @@ void input_poll(void) input_driver_turbo_btns.count++; for (i = 0; i < max_users; i++) - { input_driver_turbo_btns.frame_enable[i] = 0; - if (!input_driver_block_libretro_input && - libretro_input_binds[i][RARCH_TURBO_ENABLE].valid) + if (input_driver_block_libretro_input) + return; + + for (i = 0; i < max_users; i++) + { + if (libretro_input_binds[i][RARCH_TURBO_ENABLE].valid) { rarch_joypad_info_t joypad_info; joypad_info.axis_threshold = input_driver_axis_threshold; @@ -583,9 +586,6 @@ void input_poll(void) } } - if (input_driver_block_libretro_input) - return; - #ifdef HAVE_OVERLAY if (overlay_ptr && input_overlay_is_alive(overlay_ptr)) input_poll_overlay(