You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* simply most closely match that console's controllers (does it have A/B/X/Y
109
109
* buttons or X/O/Square/Triangle? Does it have a touchpad? etc).
110
110
*
111
-
* PSX and PS2 controllers should be classified as PS3.
112
-
*
113
-
* Sega Saturn controllers should be classified as Sega Genesis.
114
-
*
111
+
* Each gamepad type has a minimum set of features that they're supposed to offer, but
112
+
* application developers should note that the gamepad type could be misreported; SDL
113
+
* relies on various heuristics for gamepad type detection when it's not specified, and
114
+
* not all physical gamepads can be reliably distinguished.
115
115
*/
116
116
typedefenumSDL_GamepadType
117
117
{
118
-
SDL_GAMEPAD_TYPE_UNKNOWN=0,
119
-
SDL_GAMEPAD_TYPE_STANDARD,
120
-
SDL_GAMEPAD_TYPE_XBOX360,
121
-
SDL_GAMEPAD_TYPE_XBOXONE,
122
-
SDL_GAMEPAD_TYPE_PS3,
123
-
SDL_GAMEPAD_TYPE_PS4,
124
-
SDL_GAMEPAD_TYPE_PS5,
125
-
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO,
118
+
SDL_GAMEPAD_TYPE_UNKNOWN=0,/**< Not a gamepad / error / etc. */
119
+
SDL_GAMEPAD_TYPE_STANDARD,/**< A non-specific gamepad with no particular guarantees */
120
+
SDL_GAMEPAD_TYPE_XBOX360,/**< At least A/B/X/Y, d-pad, two bumpers, two clickable sticks, two analog triggers, back, start, and guide */
121
+
SDL_GAMEPAD_TYPE_XBOXONE,/**< At least A/B/X/Y, d-pad, two bumpers, two clickable sticks, two analog triggers, view, menu, and guide */
122
+
SDL_GAMEPAD_TYPE_PS3,/**< At least Cross/Circle/Square/Triangle, d-pad, two bumpers, two clickable sticks, two analog triggers, select, start, guide */
123
+
SDL_GAMEPAD_TYPE_PS4,/**< At least Cross/Circle/Square/Triangle, d-pad, two bumpers, two clickable sticks, two analog triggers, share, start, touchpad, guide */
124
+
SDL_GAMEPAD_TYPE_PS5,/**< At least Cross/Circle/Square/Triangle, d-pad, two bumpers, two clickable sticks, two adaptive triggers, create, start, touchpad, guide, mic */
125
+
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_PRO,/**< At least B/A/Y/X, d-pad, two bumpers, two clickable sticks, two triggers (digital or better), -, +, and guide */
126
126
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_LEFT,
127
127
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT,
128
128
SDL_GAMEPAD_TYPE_NINTENDO_SWITCH_JOYCON_PAIR,
129
-
SDL_GAMEPAD_TYPE_GAMECUBE,
129
+
SDL_GAMEPAD_TYPE_GAMECUBE,/**< At least A/X/B/Y, d-pad, one bumper, two sticks, two analog triggers, start */
130
130
SDL_GAMEPAD_TYPE_STEAM,
131
+
SDL_GAMEPAD_TYPE_STANDARD_BAYX, /**< A non-specific gamepad with B/A/Y/X face button layout */
132
+
SDL_GAMEPAD_TYPE_STANDARD_AXBY, /**< A non-specific gamepad with A/X/B/Y face button layout */
133
+
SDL_GAMEPAD_TYPE_STANDARD_SONY, /**< A non-specific gamepad with Cross/Circle/Square/Triangle face button layout */
134
+
SDL_GAMEPAD_TYPE_NES, /**< At least B/A, d-pad, select, start */
135
+
SDL_GAMEPAD_TYPE_SNES, /**< At least B/A/Y/X, two bumpers, d-pad, select, start */
0 commit comments