Struct InputEventJoypadButton

Input event for gamepad buttons.

struct InputEventJoypadButton ;

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

Properties

NameTypeDescription
buttonIndex[get, set] longButton identifier. One of the joysticklist button constants.
pressed[get, set] boolIf true, the button's state is pressed. If false, the button's state is released.
pressure[get, set] doubleRepresents the pressure the user puts on the button with his finger, if the controller supports it. Ranges from 0 to 1.

Methods

NameDescription
getButtonIndex
getPressure
setButtonIndex
setPressed
setPressure