0 votes

I can capture the mouse with:

Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)

Where should I put this? In _input() or _ready()?

How do I break out of the captured mouse?

asked Feb 18, 2018 in Engine by imekon (229 points)

1 Answer

0 votes

Put the Input.set_mouse_mode in _ready

Use escape to get_tree().quit()

answered Feb 18, 2018 by imekon (229 points)
edited Feb 19, 2018 by Calinou
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.