Joystick.getButtonCount

Return the number of buttons supported by a joystick. * If the joystick is not connected, this function returns 0. *

class Joystick
static
uint
getButtonCount
()

Parameters

joystick
Type: uint

Index of the joystick *

Return Value

Type: uint

Number of buttons supported by the joystick.

Meta