axmol/tests/tests/controller.h

26 lines
507 B
C++

#ifndef _CONTROLLER_H_
#define _CONTROLLER_H_
#include "cocos2d.h"
using namespace cocos2d;
class TestController : public CCLayer
{
public:
TestController();
~TestController();
void menuCallback(CCObject * pSender);
void closeCallback(CCObject * pSender);
virtual void ccTouchesBegan(CCSet *pTouches, CCEvent *pEvent);
virtual void ccTouchesMoved(CCSet *pTouches, CCEvent *pEvent);
private:
CCPoint m_tBeginPos;
CCMenu* m_pItmeMenu;
};
#endif