Skip to content

When clearing gamepad buffer, use the last button state, not 0 #1939

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

Merged
merged 1 commit into from
Jun 12, 2019
Merged

When clearing gamepad buffer, use the last button state, not 0 #1939

merged 1 commit into from
Jun 12, 2019

Conversation

deshipu
Copy link

@deshipu deshipu commented Jun 12, 2019

When reading the accumulated button presses in gamepad and gamepadshift,
don't clear the buffer to "no buttons pressed", but instead set it to
the current (last checked) state. This clears the accumulated presses,
but retains any ongoing ones.

This fixes #1935

@deshipu deshipu added this to the 4.x.x - Bug fixes milestone Jun 12, 2019
@tannewt tannewt changed the base branch from master to 4.0.x June 12, 2019 18:27
When reading the accumulated button presses in gamepad and gamepadshift,
don't clear the buffer to "no buttons pressed", but instead set it to
the current (last checked) state. This clears the accumulated presses,
but retains any ongoing ones.

This fixes #1935
@tannewt tannewt self-requested a review June 12, 2019 18:43
@tannewt tannewt added the bug label Jun 12, 2019
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tannewt tannewt merged commit 076a3f8 into adafruit:4.0.x Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants