SDL_GetGamepadFromPlayerIndex(3)

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.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.