THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Use this function to load a set of Game Controller mappings from a file, filtered by the current SDL_GetPlatform(). A community sourced database of controllers is available here|target="_blank" (on GitHub).
int SDL_GameControllerAddMappingsFromFile(const char* filename)
filename |
the name of the database you want to load |
<<Include(SDL_GameControllerAddMappingsFromRW, , , from="== Return Value ==", to="== Code Examples ==")>>
"gamecontrollerdb.txt"); SDL_GameControllerAddMappingsFromFile(
<<Include(SDL_GameControllerAddMappingsFromRW, , , from="== Remarks ==", to="== Version ==")>>
This function is available since SDL 2.0.2.
CategoryAPI, CategoryGameController, CategoryDraft