gamepad_button_count

Returns the total number of supported buttons for the device.

Syntax:

gamepad_button_count(device);


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


Returns: Real


Description

This function will return the total number of buttons available for the gamepad connected to the given device "slot".


Example:

b_num = gamepad_button_count(0);

The above code will return the number of buttons available on the gamepad plugged into device "slot" 0 and store the value in the variable "b_num".


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