axmol/tests/cpp-tests/Classes/controller.h

31 lines
594 B
C
Raw Normal View History

#ifndef _CONTROLLER_H_
#define _CONTROLLER_H_
#include "cocos2d.h"
USING_NS_CC;
class TestController : public Layer
{
public:
TestController();
~TestController();
void menuCallback(Ref * sender);
void closeCallback(Ref * sender);
bool onTouchBegan(Touch* touches, Event *event);
void onTouchMoved(Touch* touches, Event *event);
void onMouseScroll(Event *event);
2014-02-19 16:13:32 +08:00
void addConsoleAutoTest();
2014-05-12 21:47:55 +08:00
void autorun();
void startAutoRun();
ssize_t readline(int fd, char* ptr, size_t maxlen);
private:
Vector2 _beginPos;
Menu* _itemMenu;
};
#endif