2012-04-25 18:17:04 +08:00
|
|
|
#ifndef __MUTITOUCHTEST_H__
|
|
|
|
#define __MUTITOUCHTEST_H__
|
|
|
|
|
|
|
|
#include "../testBasic.h"
|
|
|
|
|
2013-06-20 14:17:10 +08:00
|
|
|
class MutiTouchTestLayer : public Layer
|
2012-04-25 18:17:04 +08:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool init();
|
|
|
|
|
|
|
|
virtual void registerWithTouchDispatcher(void);
|
2013-06-20 14:17:10 +08:00
|
|
|
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);
|
2012-04-25 18:17:04 +08:00
|
|
|
|
2012-08-27 16:11:07 +08:00
|
|
|
CREATE_FUNC(MutiTouchTestLayer)
|
2012-04-25 18:17:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class MutiTouchTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __MUTITOUCHTEST_H__ */
|