axmol/samples/Cpp/TestCpp/Classes/MutiTouchTest/MutiTouchTest.h

27 lines
695 B
C
Raw Normal View History

#ifndef __MUTITOUCHTEST_H__
#define __MUTITOUCHTEST_H__
#include "../testBasic.h"
class MutiTouchTestLayer : public Layer
{
public:
bool init();
virtual void registerWithTouchDispatcher(void);
virtual void ccTouchesBegan(cocos2d::Set *pTouches, cocos2d::Event *pEvent);
virtual void ccTouchesMoved(cocos2d::Set *pTouches, cocos2d::Event *pEvent);
virtual void ccTouchesEnded(cocos2d::Set *pTouches, cocos2d::Event *pEvent);
virtual void ccTouchesCancelled(cocos2d::Set *pTouches, cocos2d::Event *pEvent);
CREATE_FUNC(MutiTouchTestLayer)
};
class MutiTouchTestScene : public TestScene
{
public:
virtual void runThisTest();
};
#endif /* __MUTITOUCHTEST_H__ */