gamepad_axis_count

Returns the total number of axis controls for the given device.

Syntax:

gamepad_axis_count(device);


Argument Description
device Which gamepad device "slot" to check.


Returns: Real


Description

This function will return the number of "axis" controls on the device being checked. These controls are the analogue direction "thumbsticks" on most controllers.


Example:

axis = gamepad_axis_count(0))

The above code stores the number of axes available for the gamepad connected to device "slot" 0 in the variable "axis".


Back: GamePad Input
Next: gamepad_axis_value
© Copyright YoYo Games Ltd. 2018 All Rights Reserved