feat(windows): Fix inconsistency in mouse button device events, add hwheel device event on Windows

While working with device events, I noticed that there was an inconsistency in the mouse button device events between Windows/X11 and for example web, because web uses the same ids/order as the MouseButton enum, and Windows/X11 are using the X11 ids, and hwheel device event was ignored on Windows.

Mouse button device events are now using the same order as the MouseButton enum, and I also added hwheel device events for Windows.
This commit is contained in:
Valaphee The Meerkat 2023-10-20 19:03:05 +02:00 committed by GitHub
parent 36d4907da8
commit 89a184ed84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 35 deletions

View file

@ -43,6 +43,7 @@ And please only add new entries to the top of this list, right below the `# Unre
- On macOS, fix crash when accessing tabbing APIs.
- On Windows, fix `RedrawRequested` not being delivered when calling `Window::request_redraw` from `RedrawRequested`.
- On Windows, fix IME APIs not working when from non event loop thread.
- Add horizontal MouseWheel DeviceEvent on Windows
# 0.29.1-beta