InputSingleton.MouseMode

Values

ValueMeaning
mouseModeVisible0

Makes the mouse cursor visible if it is hidden.

mouseModeHidden1

Makes the mouse cursor hidden if it is visible.

mouseModeCaptured2

Captures the mouse. The mouse will be hidden and its position locked at the center of the screen. Note: If you want to process the mouse's movement in this mode, you need to use InputEventMouseMotion.relative.

mouseModeConfined3

Makes the mouse cursor visible but confines it to the game window.

Meta