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();
|
|
|
|
|
2013-07-26 06:53:24 +08:00
|
|
|
void menuCallback(Object * sender);
|
|
|
|
void closeCallback(Object * 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);
|
|
|
|
|
2012-04-19 14:35:52 +08:00
|
|
|
private:
|
2013-06-20 14:17:10 +08:00
|
|
|
Point _beginPos;
|
|
|
|
Menu* _itemMenu;
|
2012-04-19 14:35:52 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|