Linux Manuals · Linux Manuals session 3 SDL_NumJoysticks (3) Linux Manual Page ByLinux Manual Posted onApr 21, 2026 SDL_NumJoysticks – Count available joysticks. Synopsis#include "SDL.h" int SDL_NumJoysticks(void); DescriptionCounts the number of joysticks attached to the system. Return ValueReturns the number of attached joysticks See AlsoSDL_JoystickName, SDL_JoystickOpen