---
name: "SDL_GamepadType"
section: "3type"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GamepadType"
---

# SDL\_GamepadType(3type)

Standard gamepad types.

## NAME

SDL\_GamepadType - Standard gamepad types.

## HEADER FILE

Defined in SDL3/SDL\_gamepad.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef enum SDL\_GamepadType** **{**     **SDL\_GAMEPAD\_TYPE\_UNKNOWN = 0,**     **SDL\_GAMEPAD\_TYPE\_STANDARD,**     **SDL\_GAMEPAD\_TYPE\_XBOX360,**     **SDL\_GAMEPAD\_TYPE\_XBOXONE,**     **SDL\_GAMEPAD\_TYPE\_PS3,**     **SDL\_GAMEPAD\_TYPE\_PS4,**     **SDL\_GAMEPAD\_TYPE\_PS5,**     **SDL\_GAMEPAD\_TYPE\_NINTENDO\_SWITCH\_PRO,**     **SDL\_GAMEPAD\_TYPE\_NINTENDO\_SWITCH\_JOYCON\_LEFT,**     **SDL\_GAMEPAD\_TYPE\_NINTENDO\_SWITCH\_JOYCON\_RIGHT,**     **SDL\_GAMEPAD\_TYPE\_NINTENDO\_SWITCH\_JOYCON\_PAIR,**     **SDL\_GAMEPAD\_TYPE\_COUNT** **} SDL\_GamepadType;**

## DESCRIPTION

This type does not necessarily map to first-party controllers from Microsoft/Sony/Nintendo; in many cases, third-party controllers can report as these, either because they were designed for a specific console, or they simply most closely match that console's controllers (does it have A/B/X/Y buttons or X/O/Square/Triangle? Does it have a touchpad? etc).
