Joystick.hasAxis

Check if a joystick supports a given axis.

If the joystick is not connected, this function returns false.

class Joystick
static
bool
hasAxis

Parameters

joystick uint

Index of the joystick

axis Axis

Axis to check

Return Value

Type: bool

true if the joystick supports the axis, false otherwise.

Meta