change _input to _unhandled_input in most classes

This commit is contained in:
2025-02-13 23:15:47 +10:00
parent 26fe3ae790
commit c57c724f0a
3 changed files with 35 additions and 17 deletions

View File

@@ -5,7 +5,7 @@ func _ready() -> void:
Referencer.main_loaded.connect(_on_referencer_main_loaded)
func _input(event: InputEvent) -> void:
func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("toggle_cursor_capture"):
if Input.mouse_mode == Input.MOUSE_MODE_CAPTURED:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE