mirror of https://github.com/axmolengine/axmol.git
26 lines
365 B
Plaintext
26 lines
365 B
Plaintext
|
|
||
|
#include "CCCommon.h"
|
||
|
|
||
|
namespace cocos2d {
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
double x;
|
||
|
double y;
|
||
|
double z;
|
||
|
double timestamp;
|
||
|
} CCAcceleration;
|
||
|
|
||
|
|
||
|
class CCAccelerometerDelegate
|
||
|
{
|
||
|
|
||
|
void didAccelerate(CCAcceleration* pAccelerationValue);
|
||
|
void AccelerometerDestroy(void);
|
||
|
void AccelerometerKeep(void);
|
||
|
};
|
||
|
|
||
|
} //namespace cocos2d
|
||
|
|
||
|
|