-
Notifications
You must be signed in to change notification settings - Fork 941
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
Tracking Issue: Implement DeviceEvent::ModifiersChanged
#1151
Comments
Until it is implemented on all platforms, I've hidden |
ModifiersChanged on macOS has been implemented in #1268. |
I should note that PR #1262 (which has |
@murarth I just used queue_event, which takes an |
@murarth I was looking over the X11 implementation while getting the Windows implementation going, and I noticed that |
@Osspial I don't believe that's an issue with the current state of the implementation. The X11 code uses XInput device events, which are received regardless of window focus, to track modifier state and issue |
WindowEvent::ModifiersChanged
DeviceEvent::ModifiersChanged
What is the state of this issue for Windows ? Anyone working on it ? |
@shika-blyat I believe @Osspial was? |
I was waiting for the |
Is there any particular reason |
@Osspial No reason. I don't remember why I chose to make it a struct variant. As long as there's only one field, I have no objection to using a tuple variant. |
EDIT: This issue should be closed now no ? |
I think I'll wait on the web implementation until #1381 is merged, just for convenience's sake. |
@ryanisaacg Do you have an implementation for web? I noticed a note on the |
I don't think I left any WIP branches lying around; I haven't worked on winit for a while. |
Overhaul the keyboard API in winit to mimic the W3C specification to achieve better crossplatform parity. The `KeyboardInput` event is now uses `KeyEvent` which consists of: - `physical_key` - a cross platform way to refer to scancodes; - `logical_key` - keysym value, which shows your key respecting the layout; - `text` - the text produced by this keypress; - `location` - the location of the key on the keyboard; - `repeat` - whether the key was produced by the repeat. And also a `platform_specific` field which encapsulates extra information on desktop platforms, like key without modifiers and text with all modifiers. The `Modifiers` were also slightly reworked as in, the information whether the left or right modifier is pressed is now also exposed on platforms where it could be queried reliably. The support was also added for the web and orbital platforms finishing the API change. This change made the `OptionAsAlt` API on macOS redundant thus it was removed all together. Co-Authored-By: Artúr Kovács <[email protected]> Co-Authored-By: Kirill Chibisov <[email protected]> Co-Authored-By: daxpedda <[email protected]> Fixes: #2631. Fixes: #2055. Fixes: #2032. Fixes: #1904. Fixes: #1810. Fixes: #1700. Fixes: #1443. Fixes: #1343. Fixes: #1208. Fixes: #1151. Fixes: #812. Fixes: #600. Fixes: #361. Fixes: #343.
This issue tracks the implementation of
DeviceEvent::ModifiersChanged
that was discussed in #1124. PRs implementing this change should be made against themaster
branch.CHANGELOG.md
if knowledge of this change could be valuable to usersThe text was updated successfully, but these errors were encountered: