forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
26
Kha/Kinc/Backends/System/iOS/Sources/kinc/backend/motion.m.h
Normal file
26
Kha/Kinc/Backends/System/iOS/Sources/kinc/backend/motion.m.h
Normal file
@ -0,0 +1,26 @@
|
||||
#import "motion.h"
|
||||
|
||||
@implementation Motion
|
||||
/*
|
||||
Motion* the = [[Motion alloc]init];
|
||||
+ (Motion*) the {return the;};
|
||||
|
||||
-(void)configureAccelerometerWithGyroHandler: (Kt::GyroHandler*) gyroHandler
|
||||
AndUpdateInterval: (int) updateInterval
|
||||
{
|
||||
UIAccelerometer *accelerometer = [UIAccelerometer sharedAccelerometer];
|
||||
accelerometer.updateInterval = 1 / updateInterval;
|
||||
|
||||
accelerometer.delegate = self;
|
||||
self->gyroHandler = gyroHandler;
|
||||
}
|
||||
|
||||
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration{
|
||||
//gyroHandler->updateAccelerometerData(acceleration.x, acceleration.y, acceleration.z);
|
||||
}
|
||||
|
||||
void Kt::GyroHandler::configAccelerometer(int updateInterval){
|
||||
[[Motion the]configureAccelerometerWithGyroHandler:this AndUpdateInterval:updateInterval];
|
||||
};
|
||||
*/
|
||||
@end
|
Reference in New Issue
Block a user