From 3365f9b86e822e4aa162f0f2bfb9bb16b652679c Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:12:54 +0200 Subject: [PATCH] Fix input bind hold when every axis does not rest on 0 (#16256) --- menu/menu_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu/menu_driver.c b/menu/menu_driver.c index 171c0de8ea..aba5e51aad 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -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) */