2012-08-02 13:02:59 +08:00
|
|
|
/*
|
|
|
|
* CCAccelerometer.h
|
|
|
|
*
|
|
|
|
* 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 {
|
|
|
|
|
|
|
|
class CCAccelerometer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CCAccelerometer(){}
|
|
|
|
~CCAccelerometer(){}
|
|
|
|
|
|
|
|
static CCAccelerometer* sharedAccelerometer() { return NULL; };
|
|
|
|
|
2013-06-19 16:10:53 +08:00
|
|
|
void removeDelegate(std::function<void(CCAcceleration*)> function) {CC_UNUSED_PARAM(function);};
|
|
|
|
void addDelegate(std::function<void(CCAcceleration*)> function) {CC_UNUSED_PARAM(function);};
|
|
|
|
void setDelegate(std::function<void(CCAcceleration*)> 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_ */
|