add game controller support

This commit is contained in:
Eric Lewis 2022-04-01 14:48:31 -04:00 committed by Ryan C. Gordon
parent e276999061
commit a7edf9807c
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -992,6 +992,9 @@ static const char *s_ControllerMappings[] = {
#endif
#ifdef SDL_JOYSTICK_N3DS
"000000004e696e74656e646f20334400,Nintendo 3DS,crc:3210,a:b0,b:b1,back:b2,dpdown:b7,dpleft:b5,dpright:b4,dpup:b6,leftshoulder:b9,lefttrigger:b14,leftx:a0,lefty:a1,rightshoulder:b8,righttrigger:b15,rightx:a2,righty:a3,start:b3,x:b10,y:b11,",
#endif
#if defined(SDL_JOYSTICK_PLAYDATE)
"default,Playdate Controller,a:b4,b:b5,dpdown:b3,dpleft:b0,dpright:b1,dpup:b2,",
#endif
"hidapi,*,a:b0,b:b1,back:b4,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b5,leftshoulder:b9,leftstick:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b10,rightstick:b8,righttrigger:a5,rightx:a2,righty:a3,start:b6,x:b2,y:b3,",
NULL