axmol/samples/Cpp/TestCpp/Classes/AccelerometerTest/AccelerometerTest.h

31 lines
511 B
C
Raw Normal View History

#ifndef _ACCELEROMETER_TEST_H_
#define _ACCELEROMETER_TEST_H_
#include "../testBasic.h"
2011-03-08 13:49:58 +08:00
USING_NS_CC;
2011-03-08 13:49:58 +08:00
class AccelerometerTest: public CCLayer
{
2011-03-08 13:49:58 +08:00
protected:
CCSprite* m_pBall;
double m_fLastTime;
public:
AccelerometerTest(void);
~AccelerometerTest(void);
2011-03-08 13:49:58 +08:00
virtual void didAccelerate(CCAcceleration* pAccelerationValue);
virtual std::string title();
virtual void onEnter();
};
class AccelerometerTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif