mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
Adds SDL_GameControllerAddMappingsFromFile
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user