Mouse and input coordinates
Using hardware coordinates makes sense in the case of writing complex UIs meant to run on PC, such as editors, MMOs, tools, etc. However, it does not make as much sense outside of that scope.
GDScript C#
GDScript C#
When the mouse mode is set to , the event.position
value from is the center of the screen. Use event.relative
instead of and event.speed
to process mouse movement and position changes.