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

Derive Ord for GamepadButtonType. #11791

Merged
merged 1 commit into from
Feb 11, 2024

Commits on Feb 9, 2024

  1. feature: Derive Ord for GamepadButtonType.

    KeyCode derives Ord that I'm using with a trie for recognizing [input
    sequences](https://github.com/shanecelis/bevy-input-sequence/tree/trie).
    I would like to do the same for GamepadButtonType but am stymied by it
    not deriving Ord.
    
    If deriving Ord is not possible, I'd be happy to know how I might coerce
    GamepadButtonType into a `u32` or something else that is Ord.
    shanecelis committed Feb 9, 2024
    Configuration menu
    Copy the full SHA
    0498250 View commit details
    Browse the repository at this point in the history