2011-02-15 16:13:14 +00:00
|
|
|
//
|
|
|
|
// Accelerometer.h
|
|
|
|
// XNI
|
|
|
|
//
|
|
|
|
// Created by Matej Jan on 15.2.11.
|
|
|
|
// Copyright 2011 Retronator. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
2011-02-18 13:53:30 +00:00
|
|
|
#import <UIKit/UIKit.h>
|
2011-02-15 16:13:14 +00:00
|
|
|
|
2011-02-18 13:53:30 +00:00
|
|
|
#import "System.h"
|
|
|
|
#import "Retronator.Devices.Sensors.classes.h"
|
2011-02-15 16:13:14 +00:00
|
|
|
|
2011-02-18 13:53:30 +00:00
|
|
|
@interface Accelerometer : NSObject<UIAccelerometerDelegate> {
|
|
|
|
SensorState state;
|
2011-02-15 16:13:14 +00:00
|
|
|
|
2011-02-18 13:53:30 +00:00
|
|
|
Event *readingChanged;
|
2011-02-15 16:13:14 +00:00
|
|
|
}
|
|
|
|
|
2011-02-18 13:53:30 +00:00
|
|
|
@property (nonatomic, readonly) SensorState state;
|
|
|
|
@property (nonatomic, readonly) Event *readingChanged;
|
|
|
|
|
|
|
|
- (void) start;
|
|
|
|
- (void) stop;
|
|
|
|
|
2011-02-15 16:13:14 +00:00
|
|
|
@end
|