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

Fix entries with mapping duplicates #785

Closed mbabuskov closed 2 months ago

mbabuskov commented 2 months ago

Hi,

I see that there's a check for duplicated controller GUIDs. It would be nice to also detect duplicate mappings for each controller, as it often means invalid configuration. For example:

Xbox Controller 03000000300f00008888000000000000 has b10 mapped to both dpleft and lefttrigger Xbox One Controller 030000000d0f00006300000000000000 has b8 mapped to both leftstick and lefttrigger etc.

offalynne commented 2 months ago

Feel free to submit a PR to the workflow python script.