immersive-home/app/lib/events/event_action.gd

12 lines
360 B
GDScript3
Raw Normal View History

2024-01-15 17:47:09 +02:00
extends Event
2024-03-17 01:14:31 +02:00
## EventAction is emitted when the user presses a button or trigger on the controller.
2024-01-15 17:47:09 +02:00
class_name EventAction
const Initiator = preload ("res://lib/utils/pointer/initiator.gd")
2024-03-17 01:14:31 +02:00
## The name of the action that was triggered.
2024-01-15 17:47:09 +02:00
var name: String
2024-03-17 01:14:31 +02:00
## Boolean, Float or Vector2
var value
## The initiator that started the event.
var initiator: Initiator