2012-04-19 14:35:52 +08:00
|
|
|
#ifndef _CONTROLLER_H_
|
|
|
|
#define _CONTROLLER_H_
|
|
|
|
|
|
|
|
#include "cocos2d.h"
|
|
|
|
|
2012-06-14 05:19:13 +08:00
|
|
|
USING_NS_CC;
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class TestController : public Layer
|
2012-04-19 14:35:52 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
TestController();
|
|
|
|
~TestController();
|
|
|
|
|
2014-02-20 10:53:49 +08:00
|
|
|
void menuCallback(Ref * sender);
|
|
|
|
void closeCallback(Ref * sender);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-09-03 18:22:03 +08:00
|
|
|
bool onTouchBegan(Touch* touches, Event *event);
|
|
|
|
void onTouchMoved(Touch* touches, Event *event);
|
2012-04-19 14:35:52 +08:00
|
|
|
|
2013-10-05 01:07:39 +08:00
|
|
|
void onMouseScroll(Event *event);
|
2014-02-19 16:13:32 +08:00
|
|
|
void addConsoleAutoTest();
|
2013-10-05 01:07:39 +08:00
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
private:
|
2014-04-15 18:23:40 +08:00
|
|
|
Vector2 _beginPos;
|
2013-06-20 14:17:10 +08:00
|
|
|
Menu* _itemMenu;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|