immersive-home/app/lib/events/event_action.gd
2024-05-28 18:28:18 +02:00

12 lines
360 B
GDScript

extends Event
## EventAction is emitted when the user presses a button or trigger on the controller.
class_name EventAction
const Initiator = preload ("res://lib/utils/pointer/initiator.gd")
## The name of the action that was triggered.
var name: String
## Boolean, Float or Vector2
var value
## The initiator that started the event.
var initiator: Initiator