InputEventJoypadButton
Inherits: InputEvent < Resource < RefCounted < Object
Description
Section titled “Description”Represents a gamepad button being pressed or released.
Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| JoyButton | button_index |
0 |
| bool | pressed |
false |
Property descriptions
Section titled “Property descriptions”button_index
JoyButton button_index = 0
Button identifier. One of the JoyButton button constants.
pressed
bool pressed = false
If true, the button’s state is pressed. If false, the button’s state is released.
