-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Added basic mouse capture API #679
Conversation
This definitely works, but for consistency I think we should port this to using the getters/setters introduced in this pr: #644 (which we just merged) |
Looks like you accidentally added new versions some past commits. I fixed this by rebasing on master. Not really a huge deal either way because we squash+merge every pr, but the rebase made it slightly easier to review / removed a bunch of unnecessary participants. |
crates/bevy_winit/src/lib.rs
Outdated
@@ -296,3 +313,36 @@ fn handle_create_window_events( | |||
window_created_events.send(WindowCreated { id: window_id }); | |||
} | |||
} | |||
|
|||
fn handle_cursor_state_change_events( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need these events anymore. I'd prefer the Window getters/setters to be the one way to set these things
Added basic cursor lock API
Addresses #642.