SDL_GetGamepadAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found
This commit is contained in:
1 parent
5f37242607
commit
1b86a1c684
1 file changed
+4
-3
@@ -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