mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Set joypad_info.axis_threshold only once
This commit is contained in:
parent
3d45ba29d8
commit
605d877279
@ -384,6 +384,7 @@ 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;
|
||||
|
||||
@ -391,6 +392,8 @@ 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;
|
||||
@ -398,8 +401,6 @@ 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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user