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

SDL_GetGamepadName - Get the implementation-dependent name for an opened gamepad.

Defined in SDL3/SDL_gamepad.h

#include "SDL3/SDL.h"
const char * SDL_GetGamepadName(SDL_Gamepad *gamepad);

a gamepad identifier previously returned by SDL_OpenGamepad ().

Returns the implementation dependent name for the gamepad, or NULL if there is no name or the identifier passed is invalid.

This function is available since SDL 3.2.0.

(3), SDL_GetGamepadNameForID(3)

SDL 3.2.10 Simple Directmedia Layer