Stack
SDL2 / SDL3 · gamecontrollerdb.txt · community-maintained GUID mappings
Asset license
Not a media asset collection; mappings are contributed data under the Zlib grant.
AI use in testing
Use a pinned copy of gamecontrollerdb.txt as a deterministic input fixture. A mapping entry is community-contributed data, not a guarantee that one device behaves identically across platforms or SDL versions.
Try these tasks
- Load one pinned gamecontrollerdb.txt in two SDL versions and compare button and axis indices for the same GUID.
- Replay a fixed input sequence with and without the database and record which devices fall back to a generic mapping.
Setup
- Pin a commit or release and store the exact gamecontrollerdb.txt beside the test project.
- Load the file through SDL_GameControllerAddMappingsFromFile (SDL2) or SDL_AddGamepadMappingsFromFile (SDL3) and log the detected controller GUID and platform.
Limitations
Community-sourced mappings can be corrected or removed between commits, and the README asks contributors not to submit AI-generated content. The database covers SDL 2.0.10 and newer; no controller or SDL build was run locally in this review.