godot_tiny_crate/Script/AutoLoad/btn.gd
2020-10-09 16:23:26 -04:00

13 lines
247 B
GDScript

extends Node
# DOWN
func d(arg : String):
return int(Input.is_action_pressed(arg))
# PRESSED
func p(arg : String):
return int(Input.is_action_just_pressed(arg))
# RELEASED
func r(arg : String):
return int(Input.is_action_just_released(arg))