mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Addition to analog stick menu navigation (#14584)
This commit is contained in:
parent
5587ab4f8b
commit
d4eef18f18
@ -5599,7 +5599,13 @@ void input_driver_collect_system_input(input_driver_state_t *input_st,
|
||||
unsigned j = x_plus + 3;
|
||||
/* Inherit joyaxis from analogs. */
|
||||
for (k = RETRO_DEVICE_ID_JOYPAD_UP; k <= RETRO_DEVICE_ID_JOYPAD_RIGHT; k++)
|
||||
(general_binds)[k].joyaxis = (general_binds)[j--].joyaxis;
|
||||
{
|
||||
if ((general_binds)[j].joyaxis != AXIS_NONE &&
|
||||
((float)abs(joypad->axis(port, (uint32_t)(general_binds)[j].joyaxis))
|
||||
/ 0x8000) > joypad_info.axis_threshold)
|
||||
(general_binds)[k].joyaxis = (general_binds)[j].joyaxis;
|
||||
j--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user