37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
# EventAction
|
|
**Inherits:** [Event](/reference/Event.html)
|
|
|
|
## Description
|
|
|
|
EventAction is emitted when the user presses a button or trigger on the controller.
|
|
|
|
## Properties
|
|
|
|
| Name | Type | Default |
|
|
| ------------------------------------------ | ------------------------------------------------------------------------- | ------- |
|
|
| [name](#prop-name) | [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) | |
|
|
| [right_controller](#prop-right-controller) | [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) | |
|
|
| [value](#prop-value) | [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Property Descriptions
|
|
|
|
### name: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) {#prop-name}
|
|
|
|
The name of the action that was triggered.
|
|
|
|
### right_controller: [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) {#prop-right-controller}
|
|
|
|
True if the right controller triggered the action, false if the left controller triggered the action.
|
|
|
|
### value: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) {#prop-value}
|
|
|
|
Boolean, Float or Vector2
|