Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix input bind hold when every axis does not rest on 0 #16256

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion menu/menu_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down
Loading