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
|
|
|
|
|
2024-05-28 19:28:18 +03:00
|
|
|
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
|
2024-05-28 19:28:18 +03:00
|
|
|
var value
|
|
|
|
## The initiator that started the event.
|
|
|
|
var initiator: Initiator
|