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.37k stars 520 forks source link

How can I add a new mapping in this repo? #782

Closed bomb2777 closed 1 month ago

bomb2777 commented 1 month ago

Hi, I want to add 2 mappings for "Alfadata USB Gameport Adaptor" for Linux and Windows.

030000009d0700000102000000010000,Alfadata USB Gameport Adaptor,a:b1,x:b0,dpup:a1,dpleft:a0,platform:Linux, 030000009d0700000102000000000000,Alfadata USB Gameport Adaptor,a:b1,x:b0,dpup:a1,dpleft:a0,platform:Windows,

How is this handled in this repo? I have no permission to push a branch (and thus, I can not open a PR). Thank you in advance for your answer!

Best regards, Max

offalynne commented 1 month ago

I can not open a PR

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request

I want to add 2 mappings

With respect, why? The mapping has 2 buttons and 2 axes. A mapping is surely unnecessary for SDL to support the device in this case.

bomb2777 commented 1 month ago

@offalynne Thank you for your answer. I totally forgot about the Github UI, didn't use that for ages... sorry for that question.

To answer your question: it is a simple controller with 2 axis and 2 buttons, the mapping is for following: image

You also could connect Joysticks with only 1 Firebutton (e.g. think of old Amiga controllers). I am developing a game with libgdx, and it just does not see this device whilst it sees other connected Gamepads e.g. Logitech Gamepad F310 which has a mapping in gamecontrollerdb.txt.

P.S.: Linux and Windows recognize the adaptor without problems.