Joystick.getButtonCount

Return the number of buttons supported by a joystick.

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

///Params: joystick = Index of the joystick.

class Joystick
static
uint
getButtonCount
()

Return Value

Type: uint

Number of buttons supported by the joystick.

Meta