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

Fix value in MouseButton::Other on Windows #2565

Merged
merged 2 commits into from Nov 23, 2022

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Nov 22, 2022

Fixes #2562 and probably fixes #2563.

This was a mistake in #2057.

We used winapi's GET_XBUTTON_WPARAM before which is using HIWORD instead of LOWORD.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

This was a mistake in the transition to windows-sys: rust-windowing#2057

We used winapi's GET_XBUTTON_WPARAM before which is using HIWORD instead of LOWORD: https://docs.rs/winapi/0.3.9/src/winapi/um/winuser.rs.html#1297-1299
@madsmtm
Copy link
Member Author

madsmtm commented Nov 22, 2022

We might want to include this in a patch version to v0.27? (@kchibisov)

@madsmtm madsmtm added this to the Version 0.28 milestone Nov 23, 2022
@madsmtm madsmtm merged commit a63b066 into rust-windowing:master Nov 23, 2022
@madsmtm madsmtm deleted the fix-windows-mousebutton-other branch November 23, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - windows
2 participants