axmol/cocos2dx/platform/linux/CCAccelerometer.h

40 lines
885 B
C
Raw Normal View History

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