diff options
| author | BastiaanOlij | 2017-03-21 23:50:53 +1100 |
|---|---|---|
| committer | BastiaanOlij | 2017-03-21 23:50:53 +1100 |
| commit | 4b7d1d8c15747a552b7dff52b0eeda4d3e7cec4e (patch) | |
| tree | 92d25146aee07271680802f2a81af5158fee2dea /platform | |
| parent | a14ad02d155da315b247c03337d98e151b504c61 (diff) | |
| download | godot-4b7d1d8c15747a552b7dff52b0eeda4d3e7cec4e.tar.gz godot-4b7d1d8c15747a552b7dff52b0eeda4d3e7cec4e.tar.zst godot-4b7d1d8c15747a552b7dff52b0eeda4d3e7cec4e.zip | |
Fixing magnetometer on iOS
Diffstat (limited to 'platform')
| -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; }; }; |
