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();
|
|
|
|
|
2013-09-03 18:22:03 +08:00
|
|
|
void onTouchesBegan(const std::vector<Touch*>& touches, cocos2d::Event *event);
|
|
|
|
void onTouchesMoved(const std::vector<Touch*>& touches, cocos2d::Event *event);
|
|
|
|
void onTouchesEnded(const std::vector<Touch*>& touches, cocos2d::Event *event);
|
|
|
|
void onTouchesCancelled(const std::vector<Touch*>& 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__ */
|