any_key > action_confirm
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user