Struct InputEventJoypadButton
Input event for gamepad buttons.
struct InputEventJoypadButton
;
Input event type for gamepad buttons. For gamepad analog sticks and joysticks, see InputEventJoypadMotion.
Properties
| Name | Type | Description |
|---|---|---|
buttonIndex[get, set]
|
long | Button identifier. One of the joysticklist button constants.
|
pressed[get, set]
|
bool | If true, the button's state is pressed. If false, the button's state is released.
|
pressure[get, set]
|
double | Represents the pressure the user puts on the button with his finger, if the controller supports it. Ranges from 0 to 1.
|
Methods
| Name | Description |
|---|---|
getButtonIndex
|
|
getPressure
|
|
setButtonIndex
|
|
setPressed
|
|
setPressure
|