InputEventJoypadButton
Inherits: InputEvent < Resource < RefCounted < Object
Represents a gamepad button being pressed or released.
Description
Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.
Tutorials
Properties
| JoyButton | button_index | 0 |
|---|---|---|
| bool | pressed | false |
| float | pressure | 0.0 |
Property Descriptions
Button identifier. One of the JoyButton button constants.
If true, the button's state is pressed. If false, the button's state is released.
Deprecated: This property is never set by the engine and is always 0.