Don't re-read the hints when opening the game controller. Instead use SDL_GameControllerAddMapping() to add hints after initialization.
This commit is contained in:
parent
3f118b42fe
commit
7f2340dc6a
2 changed files with 3 additions and 2 deletions
|
@ -209,6 +209,9 @@ extern "C" {
|
|||
* \brief A variable that lets you manually hint extra gamecontroller db entries
|
||||
*
|
||||
* The variable expected newline delimited rows of gamecontroller config data, see SDL_gamecontroller.h
|
||||
*
|
||||
* This hint must be set before calling SDL_Init(SDL_INIT_GAMECONTROLLER)
|
||||
* You can update hints after the system is initialized with SDL_GameControllerAddMapping()
|
||||
*/
|
||||
#define SDL_HINT_GAMECONTROLLERCONFIG "SDL_GAMECONTROLLERCONFIG"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue