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

Could you add explanation for fields? #784

Closed mbabuskov closed 2 months ago

mbabuskov commented 2 months ago

Hi, I'm trying to write a custom importer for this database and I have found mappings like these:

Mapping, Count a0~: 1 a1~: 17 a2~: 3 a3~: 18 a4~: 1 a5~: 3 a6~: 1 +a0: 135 +a1: 126 +a2: 18 +a3: 20 +a4: 24 +a5: 12 -a0: 136 -a1: 127 -a2: 11 -a3: 16 -a4: 26 -a5: 4

I assume -aX means negative value on axis X, and +aX is positive value. But what are those a0~, a1~, a2~ ones?

I'm not sure if this is the right place for such information, but maybe a note explaining those could be added the README?

Thanks.

offalynne commented 2 months ago

Please refer to SDL: https://github.com/libsdl-org/SDL

mbabuskov commented 2 months ago

Just a comment if someone finds this:

The ~ character means that the axis is reversed, so negative values are down and right, and positive values are up and left.