diff --git a/Xcode/SDL/SDL.xcodeproj/project.pbxproj b/Xcode/SDL/SDL.xcodeproj/project.pbxproj old mode 100755 new mode 100644 diff --git a/src/joystick/iphoneos/SDL_mfijoystick.m b/src/joystick/iphoneos/SDL_mfijoystick.m index a9ddc09ca..0c802216a 100644 --- a/src/joystick/iphoneos/SDL_mfijoystick.m +++ b/src/joystick/iphoneos/SDL_mfijoystick.m @@ -1012,7 +1012,7 @@ IOS_MFIJoystickUpdate(SDL_Joystick *joystick) @autoreleasepool { if (@available(macos 11.0, iOS 14.0, tvOS 14.0, *)) { NSError *error; - + if (self->engine == nil) { return SDL_SetError("Haptics engine was stopped"); } @@ -1292,7 +1292,7 @@ IOS_JoystickUpdate(SDL_Joystick *joystick) if (device == NULL) { return; } - + if (device->accelerometer) { IOS_AccelerometerUpdate(joystick); } else if (device->controller) {