add custom cursor

This commit is contained in:
2025-02-27 03:09:30 +10:00
parent 77764f2892
commit 5f1cd4b796
7 changed files with 120 additions and 6 deletions

View File

@@ -46,12 +46,10 @@ 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_HIDDEN
if mode == Mode.CONTROLLER and event_mode == Mode.KB_MOUSE:
mode = Mode.KB_MOUSE
mode_changed.emit(mode)
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
if Debugger.show_debug() and event.is_pressed():
Debugger.text("input", _get_event_prompt_current_mode(event))