2012-04-25 18:17:04 +08:00
|
|
|
#ifndef __MUTITOUCHTEST_H__
|
|
|
|
#define __MUTITOUCHTEST_H__
|
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-04-25 18:17:04 +08:00
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
DEFINE_TEST_SUITE(MutiTouchTests);
|
|
|
|
|
|
|
|
class MutiTouchTest : public TestCase
|
2012-04-25 18:17:04 +08:00
|
|
|
{
|
|
|
|
public:
|
2015-04-03 14:31:03 +08:00
|
|
|
CREATE_FUNC(MutiTouchTest);
|
|
|
|
|
|
|
|
virtual bool init() override;
|
2012-04-25 18:17:04 +08:00
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __MUTITOUCHTEST_H__ */
|