Replies: 2 comments
-
If you want absolute mouse position within a window, you can use Absolute mouse position within the desktop can be found by adding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The winit api seems to be different from other event apis.
For example, the mouse release and press events only say about the triggering mouse button. but it doesn't allow querying for the mouse cursor's absolute position with respect to the containing window or to the desktop.
The mouse move event, on the other hand, only returns the delta.
What's the recommended way of obtaining the absolution mouse position?
Furthermore, it seems that on wayland, winit doesn't support inner_position and outer_position to get the location of a window. I'm curious why?
Beta Was this translation helpful? Give feedback.
All reactions