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_GetGamepadType - Get the type of an opened gamepad.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

gamepad
              the gamepad object to query.

Name

       SDL_GetGamepadType - Get the type of an opened gamepad.

Return Value

       Returns the gamepad type, or SDL_GAMEPAD_TYPE_UNKNOWN if it's not available.

See Also

SDL_GetGamepadTypeForID(3)

Simple Directmedia Layer                           SDL 3.2.20                              SDL_GetGamepadType(3)

Synopsis

#include<SDL3/SDL_gamepad.h>SDL_GamepadTypeSDL_GetGamepadType(SDL_Gamepad*gamepad);

See Also