gd: added input addon

This commit is contained in:
2025-05-27 19:20:46 +02:00
parent d8a1604af9
commit c8d8c7ec25
683 changed files with 21608 additions and 2 deletions

View File

@ -0,0 +1,20 @@
## Fires, when the input exceeds the actuation threshold. This is
## the default trigger when no trigger is specified.
@tool
class_name GUIDETriggerDown
extends GUIDETrigger
func _update_state(input:Vector3, delta:float, value_type:GUIDEAction.GUIDEActionValueType) -> GUIDETriggerState:
# if the input is actuated, then the trigger is triggered.
if _is_actuated(input, value_type):
return GUIDETriggerState.TRIGGERED
# otherwise, the trigger is not triggered.
return GUIDETriggerState.NONE
func _editor_name() -> String:
return "Down"
func _editor_description() -> String:
return "Fires, when the input exceeds the actuation threshold. This is\n" +\
"the default trigger when no trigger is specified."