API reference
Preparing search index…

Joystick

Interfaces

Identification

Joystick device identification information.

Functions

getAxisPosition

Return the specified axis position, from -100 to 100.

getButtonCount

Return the number of buttons on the specified joystick.

getIdentification

Return the specified joystick's name, vendor ID, and product ID.

hasAxis

Return whether the joystick provides the specified axis.

isButtonPressed

Query the pressed state of the specified joystick button; indices start at zero.

isConnected

Return whether the specified joystick is connected; indices start at zero.

update

Refresh joystick state manually; window event processing also refreshes it.

References

Axis → JoystickAxis
AxisCount → JoystickAxisCount
ButtonCount → JoystickButtonCount
Count → JoystickCount

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0