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-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
|
|
|
## True if the right controller triggered the action, false if the left controller triggered the action.
|
2024-01-15 17:47:09 +02:00
|
|
|
var right_controller: bool
|
2024-03-17 01:14:31 +02:00
|
|
|
## Boolean, Float or Vector2
|
|
|
|
var value
|