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

Side mouse buttons are recognized by MouseButton::Other(32) and MouseButton::Other(64) instead of an expected number #2562

Closed
Satellile opened this issue Nov 21, 2022 · 3 comments · Fixed by #2565

Comments

@Satellile
Copy link

I expected the two common side mouse buttons (Mouse4 and Mouse5) to be referenced by MouseButton::Other(1) and MouseButton::Other(2) (or by 4 and 5), but they are currently referenced by MouseButton::Other(32) and MouseButton::Other(64).

I believe this is a relatively recent change (and perhaps unintended?), as I had been referring to them previously using 1 and 2 (in a Bevy 0.8 project).

@madsmtm
Copy link
Member

madsmtm commented Nov 22, 2022

Which operating system / display server protocol are you using?

@Satellile
Copy link
Author

Satellile commented Nov 22, 2022

Which operating system / display server protocol are you using?

I'm on Windows 10.

@madsmtm
Copy link
Member

madsmtm commented Nov 22, 2022

Good catch, I've opened a PR to fix this in #2565

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

Successfully merging a pull request may close this issue.

2 participants