axmol/cocos2dx/platform/linux/CCAccelerometer.h

33 lines
824 B
C
Raw Normal View History

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"
#include <functional>
2012-08-02 13:02:59 +08:00
namespace cocos2d {
class CCAccelerometer
{
public:
CCAccelerometer(){}
~CCAccelerometer(){}
static CCAccelerometer* sharedAccelerometer() { return NULL; };
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);};
void setAccelerometerInterval(float interval) {CC_UNUSED_PARAM(interval);};
2012-08-02 13:02:59 +08:00
};
}//namespace cocos2d
#endif /* CCACCELEROMETER_H_ */