###### (This is the documentation for SDL3, which is the current stable version. [SDL2](https://wiki.libsdl.org/SDL2/) was the previous version!) # SDL_GetRealGamepadType Get the type of an opened gamepad, ignoring any mapping override. ## Header File Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_gamepad.h) ## Syntax ```c SDL_GamepadType SDL_GetRealGamepadType(SDL_Gamepad *gamepad); ``` ## Function Parameters | | | | | ---------------------------- | ----------- | ---------------------------- | | [SDL_Gamepad](SDL_Gamepad) * | **gamepad** | the gamepad object to query. | ## Return Value ([SDL_GamepadType](SDL_GamepadType)) Returns the gamepad type, or [SDL_GAMEPAD_TYPE_UNKNOWN](SDL_GAMEPAD_TYPE_UNKNOWN) if it's not available. ## Version This function is available since SDL 3.1.3. ## See Also - [SDL_GetRealGamepadTypeForID](SDL_GetRealGamepadTypeForID) ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryGamepad](CategoryGamepad)