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-07-26 06:53:24 +08:00
|
|
|
virtual void ccTouchesBegan(cocos2d::Set *touches, cocos2d::Event *event);
|
|
|
|
virtual void ccTouchesMoved(cocos2d::Set *touches, cocos2d::Event *event);
|
|
|
|
virtual void ccTouchesEnded(cocos2d::Set *touches, cocos2d::Event *event);
|
|
|
|
virtual void ccTouchesCancelled(cocos2d::Set *touches, cocos2d::Event *event);
|
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__ */
|