-
Notifications
You must be signed in to change notification settings - Fork 912
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
No getkey()? #1010
Comments
See the docs: You get events as they happen delivered to the closure you pass to Edit: ... If you want to remember some state across events, implementing that is your responsibility. Maybe we could change this issue to be about including an example for this pattern. |
@felixrabe What about access to the current keyboard state, XkbGetState() for example. |
The ability to check a key isn't available on all Winit platforms (e.g. web) so the API doesn't expose a way to do it. |
It could be a candidate for adding to a platform-specific extension trait. |
To probe for the current state of a key or button.
Edit: Getter for mouse location.
The text was updated successfully, but these errors were encountered: