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

31 lines
510 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 Layer
{
2011-03-08 13:49:58 +08:00
protected:
Sprite* _ball;
double _lastTime;
2011-03-08 13:49:58 +08:00
public:
AccelerometerTest(void);
~AccelerometerTest(void);
2011-03-08 13:49:58 +08:00
virtual void onAcceleration(Acceleration* acc, Event* event) override;
2011-03-08 13:49:58 +08:00
virtual std::string title();
virtual void onEnter();
};
class AccelerometerTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif