change confined to hidden

This commit is contained in:
Teatov 2025-02-25 03:56:48 +10:00
parent 9fca8b9687
commit 05f2a657f3

View File

@ -46,7 +46,7 @@ func _input(event: InputEvent) -> void:
if mode == Mode.KB_MOUSE and event_mode == Mode.CONTROLLER:
mode = Mode.CONTROLLER
mode_changed.emit(mode)
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
Input.mouse_mode = Input.MOUSE_MODE_HIDDEN
if mode == Mode.CONTROLLER and event_mode == Mode.KB_MOUSE:
mode = Mode.KB_MOUSE