reimagine the control scheme

This commit is contained in:
2025-09-25 09:35:40 +04:00
parent 742e4251fb
commit 301d858ea5
9 changed files with 126 additions and 38 deletions

View File

@@ -7,8 +7,8 @@ func _ready():
update_text()
func _input(event):
if event.is_action_pressed("any_key") or event is InputEventScreenTouch:
DebugManager.log_debug("Any key pressed: " + str(event), "PressAnyKey")
if event.is_action_pressed("action_south") or event is InputEventScreenTouch or (event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed):
DebugManager.log_debug("Action pressed: " + str(event), "PressAnyKey")
any_key_pressed.emit()
get_viewport().set_input_as_handled()