mirror of https://github.com/axmolengine/axmol.git
30 lines
475 B
C++
30 lines
475 B
C++
#ifndef _ACCELEROMETER_TEST_H_
|
|
#define _ACCELEROMETER_TEST_H_
|
|
|
|
#include "../testBasic.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
class AccelerometerTest: public Layer
|
|
{
|
|
protected:
|
|
Sprite* _ball;
|
|
|
|
public:
|
|
AccelerometerTest();
|
|
~AccelerometerTest();
|
|
|
|
void onAcceleration(Acceleration* acc, Event* event);
|
|
|
|
virtual std::string title() const;
|
|
virtual void onEnter() override;
|
|
};
|
|
|
|
class AccelerometerTestScene : public TestScene
|
|
{
|
|
public:
|
|
virtual void runThisTest();
|
|
};
|
|
|
|
#endif
|