-
Notifications
You must be signed in to change notification settings - Fork 1.2k
MouseInput should have a position #883
Copy link
Copy link
Closed
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outD - easyLikely easier than most tasks hereLikely easier than most tasks hereS - apiDesign and usabilityDesign and usability
Description
A common case is to get the location on screen a user clicks. The way to do that currently is to create a variable that stores the cursor location, which is updated whenever CursorMoved is received. Then, when a MouseInput event is received, you use whatever that variable is currently set to. I think it would be useful for winit to do this internally, so that the MouseInput event could store a position, making it easier for the user. winit should also update the variable whenever Window::set_cursor_position() is called.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C - needs discussionDirection must be ironed outDirection must be ironed outD - easyLikely easier than most tasks hereLikely easier than most tasks hereS - apiDesign and usabilityDesign and usability