mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fix input bind hold when every axis does not rest on 0 (#16256)
This commit is contained in:
parent
25c15834c3
commit
3365f9b86e
@ -1556,7 +1556,8 @@ static bool menu_input_key_bind_poll_find_hold_pad(
|
||||
/* Axes are a bit tricky ... */
|
||||
for (a = 0; a < MENU_MAX_AXES; a++)
|
||||
{
|
||||
if (abs(n->axes[a]) >= 20000)
|
||||
if ( abs(n->axes[a]) >= 20000
|
||||
&& n->axes[a] != new_state->axis_state[p].rested_axes[a])
|
||||
{
|
||||
/* Take care of case where axis rests on +/- 0x7fff
|
||||
* (e.g. 360 controller on Linux) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user