Count the number of joysticks attached to the system.
Defined in SDL_joystick.h
int SDL_NumJoysticks(void);
(int) Returns the number of attached joysticks on success or a negative error code on failure; call SDL_GetError() for more information.
This function is available since SDL 2.0.0.