How do I prevent the mouse cursor from moving?

Godot Version

4.2.2

Question

I’m trying to stop the cursor from moving while not in a menu, while also hiding it. How do I do that? I already have hiding, but not keeping it there.

You can store the mouse position on hide and set it to a specific position on show using warp_mouse