axmol/tests/cpp-tests/Classes/AccelerometerTest/AccelerometerTest.h

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