SDL_GetGamepadFromPlayerIndex3
Get the sdl_gamepad associated with a player index.
Usage
#include "SDL3/SDL.h"
SDL_Gamepad * SDL_GetGamepadFromPlayerIndex(int player_index);
Header file
Defined in SDL3/SDL_gamepad.h
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.