Class reference

InputEventJoypadButton

Inherits InputEvent

Represents a gamepad button being pressed or released.

Description

Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.

Properties

int button_index = 0

Button identifier. One of the JoyButton button constants.

bool pressed = false

If true, the button's state is pressed. If false, the button's state is released.

float pressure = 0.0

Deprecated.

This property is never set by the engine and is always 0.

Tutorials

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.