How to free my cursor from game window under MouseMode = Captured

Godot Version

4.4

Question

The embedded game view in Godot 4.4 is absolutely amazing! One problem though: in a third-person-view, I set my mouse mode to this:

Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

I can freely rotate my camera around, but cannot free my cursor from the game mode to click on any other buttoms. They only way to do this is stop running the game by pressing F8. Any idea how to do this during debugging? Thanks in advance!

godot

I would set up a global script that listens to a specific key press (example, F10) and when it’s pressed, it toggles between “visible” and “captured” modes. It’s probably the easiest solution.