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