any_key > action_confirm
Some checks failed
GDScript Auto-Formatting / Auto-Format GDScript Code (pull_request) Failing after 9s
GDScript Linting / GDScript Code Quality Check (pull_request) Failing after 11s

This commit is contained in:
2025-09-27 21:12:24 +04:00
parent 0791b80f15
commit 9b83bec37d
4 changed files with 12 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
extends Control
signal any_key_pressed
signal confirm_pressed
func _ready() -> void:
@@ -10,7 +10,7 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if (
event.is_action_pressed("action_south")
event.is_action_pressed("action_confirm")
or event is InputEventScreenTouch
or (
event is InputEventMouseButton
@@ -19,7 +19,7 @@ func _input(event: InputEvent) -> void:
)
):
DebugManager.log_debug("Action pressed: " + str(event), "SplashScreen")
any_key_pressed.emit()
confirm_pressed.emit()
get_viewport().set_input_as_handled()