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

[3.x] Fixed event spam when using the Nintendo Switch controller #55997

Merged

Conversation

slouken
Copy link
Contributor

@slouken slouken commented Dec 16, 2021

There is no filtering on the Nintendo Switch Pro controller thumbstick, so there will frequently be events with very slight change. These are turned into "not pressed" events, which cancel "pressed" events from keys and buttons.

This change filters out up to 5% jitter, but it might be worth revisiting whether "not pressed" events should cancel "pressed" events.

Bugsquad edit: Backport of #55978 to 3.x.

There is no filtering on the Nintendo Switch Pro controller thumbstick, so there will frequently be events with very slight change. These are turned into "not pressed" events, which cancel "pressed" events from keys and buttons.

This change filters out up to 5% jitter, but it might be worth revisiting whether "not pressed" events should cancel "pressed" events.
@slouken slouken requested a review from a team as a code owner December 16, 2021 17:11
@akien-mga akien-mga changed the title Fixed event spam when using the Nintendo Switch controller [3.x] Fixed event spam when using the Nintendo Switch controller Dec 16, 2021
@akien-mga akien-mga added this to the 3.5 milestone Dec 16, 2021
@akien-mga akien-mga merged commit b61a93d into godotengine:3.x Dec 16, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants