mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 08:56:25 +00:00
Fixed clearing the mapping in testcontroller
This commit is contained in:
@@ -1418,9 +1418,6 @@ static char *SDL_PrivateGetGamepadMappingFromMappingString(const char *pMapping)
|
|||||||
while (SDL_isspace(pSecondComma[1])) {
|
while (SDL_isspace(pSecondComma[1])) {
|
||||||
++pSecondComma;
|
++pSecondComma;
|
||||||
}
|
}
|
||||||
if (pSecondComma[1] == '\0') {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
result = SDL_strdup(pSecondComma + 1); /* mapping is everything after the 3rd comma */
|
result = SDL_strdup(pSecondComma + 1); /* mapping is everything after the 3rd comma */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user