Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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