From b134c5d23cf6161f4ae4094cc1bbe0dc92e36398 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 18 Jun 2017 20:01:48 +0200 Subject: [PATCH] Revert "Set joypad_info.axis_threshold only once" This reverts commit 605d87727993f8a8b96a8b42a938d0758d52e67a. --- input/input_driver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/input/input_driver.c b/input/input_driver.c index 7b32ea9718..20944706e1 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -384,7 +384,6 @@ float input_sensor_get_input(unsigned port, unsigned id) void input_poll(void) { size_t i; - rarch_joypad_info_t joypad_info; settings_t *settings = config_get_ptr(); unsigned max_users = input_driver_max_users; @@ -392,8 +391,6 @@ void input_poll(void) input_driver_turbo_btns.count++; - joypad_info.axis_threshold = input_driver_axis_threshold; - for (i = 0; i < max_users; i++) { input_driver_turbo_btns.frame_enable[i] = 0; @@ -401,6 +398,8 @@ void input_poll(void) if (!input_driver_block_libretro_input && libretro_input_binds[i][RARCH_TURBO_ENABLE].valid) { + rarch_joypad_info_t joypad_info; + joypad_info.axis_threshold = input_driver_axis_threshold; joypad_info.joy_idx = settings->uints.input_joypad_map[i]; joypad_info.auto_binds = input_autoconf_binds[joypad_info.joy_idx];