Adds SDL_GameControllerAddMappingsFromFile

This commit is contained in:
Gabriel Jacobo 2013-12-02 19:34:08 -03:00
parent d2984a16ad
commit 64ff6df0b8
2 changed files with 76 additions and 0 deletions

View file

@ -108,6 +108,14 @@ typedef struct SDL_GameControllerButtonBind
*
*/
/**
* Load a set of mappings from a file, filtered by the current SDL_GetPlatform()
* A community sourced database of controllers is available at https://raw.github.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
*
* \return number of mappings added, -1 on error
*/
extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromFile( const char* mapDB );
/**
* Add or update an existing mapping configuration
*