-
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
How can I prevent the cursor from moving out of the window? #2122
Comments
This doesn't work the web, though it probably could, see #1674 |
@madsmtm I've already tried this feature, but it wasn't what I was looking for. You may have misunderstood the specifications of Window :: set_cursor_grab, so I'd like to ask you just in case. In my environment, when I used Window::set_cursor_grab, the cursor didn't move in the screen, so I couldn't understand the purpose of this function. |
I'm sorry, I was misunderstanding. As a workaround for # 1470, I also used WindowEvent for mouse events, so it seems that the cursor did not move within the screen even when using Window :: set_cursor_grab. I solved it by using DeviceEvent for mouse events. |
This is a known (and documented) limitation with |
Sorry. |
I'm a mac user using maxos 12.1.
How can I prevent the cursor from going off the screen?
In my experience with other screen libraries I think there is such an option, but I couldn't find it in the docs.
The text was updated successfully, but these errors were encountered: