|Topic was automatically imported from the old Question2Answer platform.
|Published before Godot 3 was released.
Is it possible to set the mouse position in Godot ?
Just by curiosity, what kind of gameplay that uses such feature are you going to implement? This could annoy the user very quickly if it gets in his way.
Gokudomatic2 | 2016-07-05 14:00
There exist many legitimate uses - for example, in an FPS - to keep the mouse in the center of the screen
keke | 2018-04-09 22:37
@keke I would use
Input.set_mouse_mode for that.
Lightning_A | 2021-03-28 05:02
Personally I’m using it to reset the mouse position after the user clicks and drags to rotate the camera in a map editor. Otherwise every time they rotated the camera the mouse would reappear somewhere else and they’d have to spend a split second searching for it and repositioning it.
Aiet | 2021-12-08 01:28