DOKK / manpages / debian 11 / libsdl1.2-dev / SDL_NumJoysticks.3.en
SDL_NumJoysticks(3) SDL API Reference SDL_NumJoysticks(3)

SDL_NumJoysticks - Count available joysticks.

#include "SDL.h"

int SDL_NumJoysticks(void);

Counts the number of joysticks attached to the system.

Returns the number of attached joysticks

SDL_JoystickName, SDL_JoystickOpen

Tue 11 Sep 2001, 23:00 SDL