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.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Info
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS