mirror of https://github.com/axmolengine/axmol.git
31 lines
527 B
C
31 lines
527 B
C
|
#ifndef __MOUSE_TEST_H_
|
||
|
#define __MOUSE_TEST_H_
|
||
|
|
||
|
#include "cocos2d.h"
|
||
|
#include "../testBasic.h"
|
||
|
|
||
|
class MouseTest : public Layer
|
||
|
{
|
||
|
public:
|
||
|
MouseTest();
|
||
|
~MouseTest();
|
||
|
|
||
|
void onMouseDown(Event* event);
|
||
|
void onMouseUp(Event* event);
|
||
|
void onMouseMove(Event* event);
|
||
|
void onMouseScroll(Event* event);
|
||
|
|
||
|
private:
|
||
|
LabelTTF* _labelAction;
|
||
|
LabelTTF* _labelPosition;
|
||
|
EventListenerMouse* _mouseListener;
|
||
|
};
|
||
|
|
||
|
class MouseTestScene : public TestScene
|
||
|
{
|
||
|
public:
|
||
|
virtual void runThisTest();
|
||
|
};
|
||
|
|
||
|
#endif
|