Windows PS4 controller mapping

Hey,

Sorry if this is the wrong place - I tried to register an account on the
bug tracker but for some reason I never got an email to register.

Anyways, it appears the Windows mapping for PS4 controllers is wrong in (at
least) SDL 2.0.2. From
http://hg.libsdl.org/SDL/file/tip/src/joystick/SDL_gamecontrollerdb.h -
Line 43:

"4c05c405000000000000504944564944,PS4

Controller,a:a3,a:b1,b:b2,back:b8,dpdown:h0.0,dpdown:h0.4,dpleft:h0.8,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,guide:b12,leftshoulder:b4,leftshoulder:h0.0,leftstick:b10,leftstick:b7,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightshoulder:b6,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:a4,x:b0,y:b3,",

Should probably be changed to:

"4c05c405000000000000504944564944,PS4

Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,",

That uses the same binding as OS X/Windows, and at least from my experience
works without issues.

Thanks,

-Luke

Sorry if this is the wrong place - I tried to register an account on the
bug tracker but for some reason I never got an email to register.

Can you see if it landed in a spam folder somewhere? We get reports that
the email didn’t show up occasionally, and I’d really like to figure out
why.

Anyways, it appears the Windows mapping for PS4 controllers is wrong in
(at least) SDL 2.0.2.

Just pushed a fix for this, thanks!

–ryan.

Cool - thanks!

I checked the spam folder and didn?t find anything. Didn?t see anything in the server logs either - it?s like the message never made it to the server. Same goes for two other domains (on different providers) as well.

-LukeOn Mar 18, 2014, at 10:58 AM, Ryan C. Gordon wrote:

Sorry if this is the wrong place - I tried to register an account on the
bug tracker but for some reason I never got an email to register.

Can you see if it landed in a spam folder somewhere? We get reports that the email didn’t show up occasionally, and I’d really like to figure out why.

Anyways, it appears the Windows mapping for PS4 controllers is wrong in
(at least) SDL 2.0.2.

Just pushed a fix for this, thanks!

–ryan.