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

SDL_GetJoystickType - Get the type of an opened joystick.

Defined in SDL3/SDL_joystick.h

#include "SDL3/SDL.h"
SDL_JoystickType SDL_GetJoystickType(SDL_Joystick *joystick);

the SDL_Joystick
obtained from SDL_OpenJoystick ().

( SDL_JoystickType ) Returns the

SDL_JoystickType
of the selected joystick.

This function is available since SDL 3.2.0.

(3), SDL_GetJoystickTypeForID(3)

SDL 3.2.10 Simple Directmedia Layer