Adds SDL_GameControllerAddMappingsFromFile
This commit is contained in:
parent
d2984a16ad
commit
64ff6df0b8
2 changed files with 76 additions and 0 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue