diff options
| author | Rémi Verschelde | 2017-03-23 09:57:29 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-23 09:57:29 +0100 |
| commit | fd17d301d0a655956fda7a159a0ffd4c54b56576 (patch) | |
| tree | 923cc148bfc54509ce32424913fd02d419e02659 | |
| parent | aaf4e3ab9f8ffca22b34b63aaaf8cc87ead22e48 (diff) | |
| parent | 4b7d1d8c15747a552b7dff52b0eeda4d3e7cec4e (diff) | |
| download | godot-fd17d301d0a655956fda7a159a0ffd4c54b56576.tar.gz godot-fd17d301d0a655956fda7a159a0ffd4c54b56576.tar.zst godot-fd17d301d0a655956fda7a159a0ffd4c54b56576.zip | |
Merge pull request #8100 from BastiaanOlij/ios_magnetometer_2.1
Fixing magnetometer on iOS
| -rw-r--r-- | platform/iphone/app_delegate.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/iphone/app_delegate.mm b/platform/iphone/app_delegate.mm index 7a48629ea..bd96ba8e2 100644 --- a/platform/iphone/app_delegate.mm +++ b/platform/iphone/app_delegate.mm @@ -299,7 +299,7 @@ static int frame_count = 0; motionManager = [[CMMotionManager alloc] init]; if (motionManager.deviceMotionAvailable) { motionManager.deviceMotionUpdateInterval = 1.0/70.0; - [motionManager startDeviceMotionUpdates]; + [motionManager startDeviceMotionUpdatesUsingReferenceFrame:CMAttitudeReferenceFrameXMagneticNorthZVertical]; motionInitialised = YES; }; }; |
