Fixes https://github.com/libsdl-org/SDL/issues/8716 (cherry picked from commit 0e5ea3cc4b98d061688a098836254ab6470b07e8)
@@ -1834,6 +1834,9 @@ static SDL_bool IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMappi
if (device == NULL) {
return SDL_FALSE;
}
+ if (device->accelerometer) {
+ return SDL_FALSE;
+ }
if (@available(macOS 10.16, iOS 14.0, tvOS 14.0, *)) {
int axis = 0;