NumJoyButtons ( joy_num )

Returns the number of buttons on a joystick.

Example: