Implement controller motion sensor support

Axis values probably still need to be swapped around to match other platforms
This commit is contained in:
Cameron Gutman
2023-06-29 00:35:35 -05:00
parent d48690b320
commit ef5c3d36d3
2 changed files with 117 additions and 1 deletions

View File

@@ -35,6 +35,11 @@
@property (nonatomic) HapticContext* _Nullable leftTriggerMotor;
@property (nonatomic) HapticContext* _Nullable rightTriggerMotor;
@property (nonatomic) NSTimer* _Nullable accelTimer;
@property (nonatomic) GCAcceleration lastAccelSample;
@property (nonatomic) NSTimer* _Nullable gyroTimer;
@property (nonatomic) GCRotationRate lastGyroSample;
@property (nonatomic) BOOL reportedArrival;
@end