Implement controller motion sensor support
Axis values probably still need to be swapped around to match other platforms
This commit is contained in:
parent
d48690b320
commit
ef5c3d36d3
2 changed files with 117 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue