mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
SDL_GetGamepadAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found
This commit is contained in:
@@ -3771,8 +3771,9 @@ const char *SDL_GetGamepadAppleSFSymbolsNameForAxis(SDL_Gamepad *gamepad, SDL_Ga
|
||||
}
|
||||
SDL_UnlockJoysticks();
|
||||
|
||||
return retval;
|
||||
#else
|
||||
return NULL;
|
||||
if (retval && *retval) {
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user