SDL Wiki

Draft

THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!

SDL_GameControllerAddMappingsFromFile

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).

Syntax

int SDL_GameControllerAddMappingsFromFile(const char* filename)

Function Parameters

filename

the name of the database you want to load

Return Value

<<Include(SDL_GameControllerAddMappingsFromRW, , , from="== Return Value ==", to="== Code Examples ==")>>

Code Examples

SDL_GameControllerAddMappingsFromFile("gamecontrollerdb.txt");

Remarks

<<Include(SDL_GameControllerAddMappingsFromRW, , , from="== Remarks ==", to="== Version ==")>>

Version

This function is available since SDL 2.0.2.

SDL_GameControllerAddMapping
SDL_GameControllerAddMappingsFromRW
SDL_GameControllerMappingForGUID

CategoryAPI, CategoryGameController, CategoryDraft


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.