You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought it was impossible, until I posted to the Bevy Discord:
For testing, I need to put the mouse cursor to a specific position. I've searched the Rust doc, internet and Discord channel, and the closest I got is:
This is a relative mouse movement. However, I want to set it to an absolute position. I cannot imagine that relative movement of the mouse cursors is implemented and absolute is not.
How to set the mouse cursor to a specific position?
Thanks and cheers, Richel
Then faervan answered:
Have you tried Window::set_cursor_position() ?
Add it to the book 👍
The text was updated successfully, but these errors were encountered:
I thought it was impossible, until I posted to the Bevy Discord:
Then
faervan
answered:Add it to the book 👍
The text was updated successfully, but these errors were encountered: