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
Type: uint

Index of the joystick

axis
Type: Axis

Axis to check *

Return Value

Type: bool

true if the joystick supports the axis, false otherwise.

Meta