-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Key input issue on mac #32
Comments
This is sad, WindowEvent is bad because it requires mouse to be inside window bounds to get any events from it, so it is suitable only for full screen mode. However it seems that there is no other solutions, so yeah PR would be nice, but I'd add |
Does it? My creature walks with WASD when my mouse is not on the window (if the window has focus). So I'm not seeing any particular problem on macOS. Hope this is a good news (or not on Windows?). |
Keyboard input is working, right, mouse events won't come if cursor is outside window. |
Mouse events are still available as If that's OK, I would make a PR and prepare for review. |
Yeah, that sounds good. |
Allow key input in examples on macOS (#32)
winit
has key input issue on macOS: rust-windowing/winit#1470It says that macOS Accesibility prevents key inputs from going as
DeviceEvent
s. So, on macOS, keyboard input events can only be captured asWindowEvent
, unless somehow configuring Accesibility.I made a commit to enable key input on macOS in the
3rd_person
example: toyboot4e@2f2dafe. I can make such changes and make a PR, but I'm not sure if it's good to get key input asWindowEvent
.The text was updated successfully, but these errors were encountered: