mdqinc / SDL_GameControllerDB

A community sourced database of game controller mappings to be used with SDL2 Game Controller functionality
http://libsdl.org
zlib License
1.38k stars 520 forks source link

Please add new mapping for CECHZC2U Wireless Controller (PS3 Controller) (mapping included) #753

Closed michelcve closed 6 months ago

michelcve commented 6 months ago

I have a "china made" PS3 controller, that doesn't seem to be supported yet.

Model no CECHZC2Ua1 Wireless Controller

This is the mapping that I made with it:

030000004c0500006802000000000000,PS3 Controller,a:b14,b:b13,y:b12,x:b15,start:b3,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,platform:Windows

of maybe better with a slightly different description so that in includes the model? Not sure what is best...

030000004c0500006802000000000000,CECHZC2Ua1 Wireless Controller (PS3 Controller),a:b14,b:b13,y:b12,x:b15,start:b3,back:b0,leftstick:b1,rightstick:b2,leftshoulder:b10,rightshoulder:b11,dpup:b4,dpleft:b7,dpdown:b6,dpright:b5,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:b8,righttrigger:b9,platform:Windows

Can this be somehow added? (not sure if this is the correct way)

offalynne commented 6 months ago

Duplicate mapping https://github.com/mdqinc/SDL_GameControllerDB/blob/01700b13626cc06944f5e9ec9b2042a7ad96bc00/gamecontrollerdb.txt#L517

michelcve commented 6 months ago

My apologies, I must have overlooked. But great that it has been added! Thx!