SDL_JoystickNumButtons (3) - Linux Manuals
SDL_JoystickNumButtons: Get the number of joysitck buttons
NAME
SDL_JoystickNumButtons - Get the number of joysitck buttonsSYNOPSIS
#include "SDL.h"
int SDL_JoystickNumButtons(SDL_Joystick *joystick);
DESCRIPTION
Return the number of buttons available from a previously opened SDL_Joystick.
RETURN VALUE
SEE ALSO
SDL_JoystickGetButton, SDL_JoystickOpen