Use DeviceMotion (gyroscope + accelerometer) instead of Gyro for less jittering FIXME: camera jumps upon rotating screen while gyro is active
10 lines
185 B
Objective-C
10 lines
185 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@interface GyroInput : NSObject
|
|
|
|
+ (void)updateOrientation;
|
|
+ (void)updateSensitivity:(int)sensitivity invertXAxis:(BOOL)invertX;
|
|
+ (void)tick;
|
|
|
|
@end
|