Added an X360 game controller config for Linux.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 24 Feb 2013 22:56:24 -0500
changeset 69128264db362231
parent 6911 c683ff6484b0
child 6913 7e9c4d29e668
Added an X360 game controller config for Linux.
src/joystick/SDL_gamecontroller.c
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Sun Feb 24 12:56:29 2013 -0800
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Sun Feb 24 22:56:24 2013 -0500
     1.3 @@ -96,7 +96,7 @@
     1.4  	"5e040000000000008e02000000000000,X360 Controller,a:b0,b:b1,y:b3,x:b2,start:b8,guide:b10,back:b9,dpup:b11,dpleft:b13,dpdown:b12,dpright:b14,leftshoulder:b4,rightshoulder:b5,leftstick:b6,rightstick:b7,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5",
     1.5  	"4c050000000000006802000000000000,PS3 Controller,a:b14,b:b13,x:b12,y:b15,start:b3,guide:b16,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b6,dpdown:b7,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9",
     1.6  #elif defined(__LINUX__)
     1.7 -	
     1.8 +	"030000005e0400008e02000014010000,X360 Controller,a:b0,b:b1,y:b3,x:b2,start:b7,guide:b8,back:b6,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftshoulder:b4,rightshoulder:b5,leftstick:b9,rightstick:b10,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5",
     1.9  #endif
    1.10  	NULL
    1.11  };