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
Info
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS