Hide and Capture Mouse

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vonflyhighace2
:warning: Old Version Published before Godot 3 was released.

Is it possible to Hide and Capture the mouse at the same time.

:bust_in_silhouette: Reply From: eons

Yes
http://docs.godotengine.org/en/latest/classes/class_input.html?highlight=input#numeric-constants

I do not understand how to use Numeric Constants to hide the mouse.
Could you please Provide a hint?
found a hint…
Way to Change what cursor looks like in game via GDScript? - Archive - Godot Forum

kc | 2017-10-11 16:09

The common syntax is:

set_property(Class.PROPERTY_CONSTANT)

Like:

set_mouse_mode(Input.MOUSE_MODE_HIDDEN)

Is the same if you use the value but the names are there so you don’t have to care about the value (if for “reasons” that changes internally in the engine).

eons | 2017-10-12 02:11