How to hide or disable the mouse cursor?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hermo

Hello people!

I’m doing a 2d platform game where only keyboard is needed.
How can I disable or hide the mouse cursor so it doesn’t show in the game?

Thank you very much! :slight_smile:

:bust_in_silhouette: Reply From: volzhs
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)

That worked! Thank you!!!

hermo | 2019-04-06 15:11

And for completeness’s sake, use Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) to make the mouse cursor visible again.

(At least in Godot version 3.2.2)

ChristianSF | 2020-08-01 21:21