include/SDL_gamecontroller.h
changeset 8042 7863121cb7d5
parent 7341 675c85d46f30
child 8046 e7c89b29932a
     1.1 --- a/include/SDL_gamecontroller.h	Mon Dec 02 10:08:57 2013 -0300
     1.2 +++ b/include/SDL_gamecontroller.h	Mon Dec 02 19:34:08 2013 -0300
     1.3 @@ -109,6 +109,14 @@
     1.4   */
     1.5  
     1.6  /**
     1.7 + *  Load a set of mappings from a file, filtered by the current SDL_GetPlatform()
     1.8 + *  A community sourced database of controllers is available at https://raw.github.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt
     1.9 + *
    1.10 + * \return number of mappings added, -1 on error
    1.11 + */
    1.12 +extern DECLSPEC int SDLCALL SDL_GameControllerAddMappingsFromFile( const char* mapDB );
    1.13 +
    1.14 +/**
    1.15   *  Add or update an existing mapping configuration
    1.16   *
    1.17   * \return 1 if mapping is added, 0 if updated, -1 on error