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

GamepadButton does not retain trigger values #680

Closed
bhickey opened this issue Oct 14, 2020 · 0 comments · Fixed by #683
Closed

GamepadButton does not retain trigger values #680

bhickey opened this issue Oct 14, 2020 · 0 comments · Fixed by #683
Labels
A-Input Player input via keyboard, mouse, gamepad, and more C-Bug An unexpected or incorrect behavior

Comments

@bhickey
Copy link

bhickey commented Oct 14, 2020

gilrs moved LeftTrigger2 and RightTrigger2 from axes to buttons. At the time of this change the button value was stuffed into a ButtonChanged event. It appears that bevy's gamepad handling routine discards these values when constructing its just_pressed and pressed hash sets.

While some games can treat these triggers as booleans, an analog interpretation is important for configuring sensitivity or using the button as a throttle.

@Moxinilian Moxinilian added C-Bug An unexpected or incorrect behavior A-Input Player input via keyboard, mouse, gamepad, and more labels Oct 14, 2020
@cart cart closed this as completed in #683 Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Input Player input via keyboard, mouse, gamepad, and more C-Bug An unexpected or incorrect behavior
Projects
None yet
2 participants