mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-10 08:34:53 +00:00
SDL_GameControllerGetAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found
(cherry picked from commit 627e15871a)
This commit is contained in:
parent
c1149f88b6
commit
a2f39399a1
1 changed files with 4 additions and 3 deletions
|
|
@ -3280,10 +3280,11 @@ const char *SDL_GameControllerGetAppleSFSymbolsNameForAxis(SDL_GameController *g
|
|||
}
|
||||
SDL_UnlockJoysticks();
|
||||
|
||||
return retval;
|
||||
#else
|
||||
return NULL;
|
||||
if (retval && *retval) {
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue