SDL_GetGamepadFromPlayerIndex - Man Page

Get the SDL_Gamepad associated with a player index.

Synopsis

#include <SDL3/SDL_gamepad.h>

SDL_Gamepad * SDL_GetGamepadFromPlayerIndex(int player_index);

Function Parameters

player_index

the player index, which different from the instance ID.

Return Value

Returns the SDL_Gamepad associated with a player index.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_GetGamepadPlayerIndex(3), SDL_SetGamepadPlayerIndex(3)

Info

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS