Skip to content

GamepadButton does not retain trigger values #680

Closed
@bhickey

Description

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.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    A-InputPlayer input via keyboard, mouse, gamepad, and moreC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions