Inherits: InputEvent < Resource < Reference < Object
Input event for gamepad buttons.
- int button_index - Button identifier. One of the
JOY_BUTTON_*constants from @global Scope.
- bool pressed - If
truethe button’s state is pressed. If
falsethe button’s state is released.
- float pressure - Represents the pressure the user puts on the button with his finger, if the controller supports it. Ranges from
Input event type for gamepad buttons. For joysticks see InputEventJoypadMotion.