mirror of
https://github.com/HarmonyHoney/tiny_crate.git
synced 2026-01-24 02:56:32 +00:00
13 lines
247 B
GDScript
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))
|