logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetGamepadFromPlayerIndex - Get the SDL_Gamepad

Availability

       This function is available since SDL 3.2.0.

Function Parameters

player_index
              the player index, which different from the instance ID.

Header File

       Defined in SDL3/SDL_gamepad.h

Name

       SDL_GetGamepadFromPlayerIndex - Get the SDL_Gamepad
        associated with a player index.

Return Value

       ( SDL_Gamepad
        *) Returns the SDL_Gamepad

       associated with a player index.

See Also

(3), SDL_GetGamepadPlayerIndex(3), (3), SDL_SetGamepadPlayerIndex(3)

Simple Directmedia Layer                           SDL 3.2.10                   SDL_GetGamepadFromPlayerIndex(3)

Synopsis

#include"SDL3/SDL.h"SDL_Gamepad*SDL_GetGamepadFromPlayerIndex(intplayer_index);

See Also