getFromPlayerIndex static method
Get the SDL_Gamepad associated with a player index.
\param player_index the player index, which different from the instance ID. \returns the SDL_Gamepad associated with a player index.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_GetGamepadPlayerIndex \sa SDL_SetGamepadPlayerIndex
extern SDL_DECLSPEC SDL_Gamepad * SDLCALL SDL_GetGamepadFromPlayerIndex(int player_index)
{@category gamepad}
Implementation
static Pointer<SdlGamepad> getFromPlayerIndex(int playerIndex) =>
sdlGetGamepadFromPlayerIndex(playerIndex);