SDL_GetGamepadFromPlayerIndex - Get the SDL_Gamepad
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
player_index
the player index, which different from the instance ID.
Header File
Defined in SDL3/SDL_gamepad.h
Name
SDL_GetGamepadFromPlayerIndex - Get the SDL_Gamepad
associated with a player index.
Return Value
( SDL_Gamepad
*) Returns the SDL_Gamepad
associated with a player index.
See Also
•(3), SDL_GetGamepadPlayerIndex(3), •(3), SDL_SetGamepadPlayerIndex(3) Simple Directmedia Layer SDL 3.2.10 SDL_GetGamepadFromPlayerIndex(3)
Synopsis
#include"SDL3/SDL.h"SDL_Gamepad*SDL_GetGamepadFromPlayerIndex(intplayer_index);
