2013-04-09 09:21:53 +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>
|
2013-04-09 09:21:53 +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);};
|
2013-04-09 09:21:53 +08:00
|
|
|
void setAccelerometerInterval(float interval) {CC_UNUSED_PARAM(interval);};
|
|
|
|
};
|
|
|
|
|
|
|
|
}//namespace cocos2d
|
|
|
|
|
|
|
|
#endif /* CCACCELEROMETER_H_ */
|