DOKK / manpages / debian 13 / libsdl3-doc / SDL_JoystickConnected.3.en
SDL_JoystickConnected(3) SDL3 FUNCTIONS SDL_JoystickConnected(3)

SDL_JoystickConnected - Get the status of a specified joystick.

Defined in SDL3/SDL_joystick.h

#include "SDL3/SDL.h"
bool SDL_JoystickConnected(SDL_Joystick *joystick);

the joystick to query.

Returns true if the joystick has been opened, false if it has not; call SDL_GetError () for more information.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer