2012-08-02 13:02:59 +08:00
|
|
|
/*
|
2013-06-20 14:13:12 +08:00
|
|
|
* Accelerometer.h
|
2012-08-02 13:02:59 +08:00
|
|
|
*
|
|
|
|
* Created on: Aug 9, 2011
|
|
|
|
* Author: laschweinski
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CCACCELEROMETER_H_
|
|
|
|
#define CCACCELEROMETER_H_
|
|
|
|
|
|
|
|
#include "platform/CCAccelerometerDelegate.h"
|
2013-06-19 16:10:53 +08:00
|
|
|
#include <functional>
|
2012-08-02 13:02:59 +08:00
|
|
|
|
|
|
|
namespace cocos2d {
|
|
|
|
|
2013-06-20 14:13:12 +08:00
|
|
|
class Accelerometer
|
2012-08-02 13:02:59 +08:00
|
|
|
{
|
|
|
|
public:
|
2013-06-20 14:13:12 +08:00
|
|
|
Accelerometer(){}
|
|
|
|
~Accelerometer(){}
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-06-20 14:13:12 +08:00
|
|
|
static Accelerometer* sharedAccelerometer() { return NULL; };
|
2012-08-02 13:02:59 +08:00
|
|
|
|
2013-06-20 14:13:12 +08:00
|
|
|
void removeDelegate(std::function<void(Acceleration*)> function) {CC_UNUSED_PARAM(function);};
|
|
|
|
void addDelegate(std::function<void(Acceleration*)> function) {CC_UNUSED_PARAM(function);};
|
|
|
|
void setDelegate(std::function<void(Acceleration*)> function) {CC_UNUSED_PARAM(function);};
|
2012-11-16 14:10:34 +08:00
|
|
|
void setAccelerometerInterval(float interval) {CC_UNUSED_PARAM(interval);};
|
2012-08-02 13:02:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
}//namespace cocos2d
|
|
|
|
|
|
|
|
#endif /* CCACCELEROMETER_H_ */
|