-
Notifications
You must be signed in to change notification settings - Fork 920
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
CursorState::Grab does not report mouse delta on macOS #165
Comments
#164 introduced API for raw input events, which is more appropriate for things like first-person camera control. Would it make more sense to extend the macos backend with support generating such events? It seems to me that you generally want either high-resolution unfiltered relative mouse movement data or filtered window-space pointer positions, not filtered window-space relative pointer movement, and not both at once. |
@Ralith Will we need a new |
As discussed on IRC, the intention of edit for posterity: @LPGhatguy has convinced me that it's worth having input device class specific event types for the sake of API usability. |
This is complete, right? |
You still get MouseMoved events with the absolute position of the mouse, but it does not change. As a result, it's kind of useless. According to macOS documentation, you should instead check for deltaX and deltaY on the NSEvent.
As far as I can tell, winit doesn't currently report the mouse cursor delta in any events. I think it makes sense to add the mouse delta to the MouseMoved event. Any thoughts?
The text was updated successfully, but these errors were encountered: