Adds SDL_GameControllerAddMappingsFromFile

This commit is contained in:
Gabriel Jacobo committed 2013-12-02 19:34:08 -03:00
1 parent 7d9e42f28c
commit 45ae148aef
2 files changed
+76

No files matched your search

+8
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
*