Adds SDL_GameControllerAddMappingsFromFile

This commit is contained in:
Gabriel Jacobo
2013-12-02 19:34:08 -03:00
parent 7d9e42f28c
commit 45ae148aef
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
*