mirror of https://github.com/axmolengine/axmol.git
26 lines
428 B
C++
26 lines
428 B
C++
#ifndef _CONTROLLER_H_
|
|
#define _CONTROLLER_H_
|
|
|
|
#include "cocos2d.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
class TestController : public Layer
|
|
{
|
|
public:
|
|
TestController();
|
|
~TestController();
|
|
|
|
void menuCallback(Object * sender);
|
|
void closeCallback(Object * sender);
|
|
|
|
bool onTouchBegan(Touch* touches, Event *event);
|
|
void onTouchMoved(Touch* touches, Event *event);
|
|
|
|
private:
|
|
Point _beginPos;
|
|
Menu* _itemMenu;
|
|
};
|
|
|
|
#endif
|