Warp_mouse() on control node

Godot Version

v4.7.1.stable.official [a13da4feb]

Question

I have a Control node that I need to get mouse position inside one function, and then warp the mouse to that position inside some other function in the same Control node. But I cannot manage to do that. Any suggestions?

Can you explain a little better? For what you need it? Do you need to lock the mouse on the center??

hi, sorry for the very late response.
Yes I think I actually need the lock the mouse at the centre of the control node.

than its easy do =

Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

if this is not the right thing than ask me anything!