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
|
@ -879,8 +879,6 @@ SDL_GameControllerOpen(int device_index)
|
|||
}
|
||||
|
||||
// Find a controller mapping
|
||||
// Check for hints in case someone has changed them recently
|
||||
SDL_GameControllerLoadHints();
|
||||
pSupportedController = SDL_PrivateGetControllerMapping(device_index);
|
||||
if ( !pSupportedController ) {
|
||||
SDL_SetError("Couldn't find mapping for device (%d)", device_index );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue