SDL_GetGamepadName - Man Page

Get the implementation-dependent name for an opened gamepad.

Synopsis

#include <SDL3/SDL_gamepad.h>

const char * SDL_GetGamepadName(SDL_Gamepad *gamepad);

Function Parameters

gamepad

a gamepad identifier previously returned by SDL_OpenGamepad().

Return Value

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

Availability

This function is available since SDL 3.2.0.

See Also

SDL_GetGamepadNameForID(3)

Referenced By

SDL_GetGamepadNameForID(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS