Good day,
I'm looking for to constraint the mouse to stays in the minimap's perimeter when the left button still pressed.
I know i need to use get_local_mouse_position()
(because i only need local coordinates of the minmap) and warp_mouse()
, but i don't understand what's append when the condition is reached.
If the mouse reachs the line, it must be warped before the line (or blocked i should say). The mouse seems to be teleported out of the godot window and not in the control's perimeter. That should be inverse, in theory.
warp_mouse()
for a control node seems to be local, so why my mouse be out of the screen ?
