starcheese/input_event.gd

11 lines
196 B
GDScript3
Raw Normal View History

2024-10-03 18:12:33 +01:00
class_name KeyboardInputEvent
extends Event
var action: String
var pressed: bool
func _init(_action: String, _pressed: bool):
action = _action
pressed = _pressed
type = "KeyboardInputEvent"