immersive-home/docs/reference/EventAction.md

37 lines
1.3 KiB
Markdown
Raw Normal View History

2024-03-16 19:45:43 +02:00
# EventAction
**Inherits:** [Event](/reference/Event.html)
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
## Description
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
EventAction is emitted when the user presses a button or trigger on the controller.
2024-03-16 19:45:43 +02:00
## Properties
2024-03-17 01:14:31 +02:00
| 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) | |
2024-03-16 19:45:43 +02:00
2024-03-16 19:45:43 +02:00
## Property Descriptions
2024-03-17 01:14:31 +02:00
### name: [String](https://docs.godotengine.org/de/4.x/classes/class_string.html) {#prop-name}
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
The name of the action that was triggered.
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
### right_controller: [bool](https://docs.godotengine.org/de/4.x/classes/class_bool.html) {#prop-right-controller}
2024-03-16 19:45:43 +02:00
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-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
### value: [Variant](https://docs.godotengine.org/de/4.x/classes/class_variant.html) {#prop-value}
2024-03-16 19:45:43 +02:00
2024-03-17 01:14:31 +02:00
Boolean, Float or Vector2