SDL_GetGamepadFromPlayerIndex - Man Page

Name

SDL_GetGamepadFromPlayerIndex — Get the SDL_Gamepad
associated with a player index.

Header File

Defined in SDL3/SDL_gamepad.h

Synopsis

#include "SDL3/SDL.h"

SDL_Gamepad * SDL_GetGamepadFromPlayerIndex(int player_index);

Function Parameters

player_index

the player index, which different from the instance ID.

Return Value

( SDL_Gamepad
*) Returns the SDL_Gamepad

associated with a player index.

Availability

This function is available since SDL 3.2.0.

See Also

·(3), SDL_GetGamepadPlayerIndex(3), ·(3), SDL_SetGamepadPlayerIndex(3)

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS