Return the number of buttons supported by a joystick.
If the joystick is not connected, this function returns 0.
Index of the joystick
Number of buttons supported by the joystick.
See Implementation
Return the number of buttons supported by a joystick.
If the joystick is not connected, this function returns 0.