mirror of
https://github.com/encounter/SDL.git
synced 2025-06-10 00:23:41 +00:00
Allow mappings to be added before GameControllerInit
This commit is contained in:
parent
1e8df9cd60
commit
2a754ca735
@ -861,7 +861,6 @@ SDL_GameControllerInit(void)
|
|||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
const char *pMappingString = NULL;
|
const char *pMappingString = NULL;
|
||||||
s_pSupportedControllers = NULL;
|
|
||||||
pMappingString = s_ControllerMappings[i];
|
pMappingString = s_ControllerMappings[i];
|
||||||
while (pMappingString) {
|
while (pMappingString) {
|
||||||
SDL_GameControllerAddMapping(pMappingString);
|
SDL_GameControllerAddMapping(pMappingString);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user