2017-02-23 17:05:08 +08:00
|
|
|
#ifndef __MULTITOUCHTEST_H__
|
|
|
|
#define __MULTITOUCHTEST_H__
|
2012-04-25 18:17:04 +08:00
|
|
|
|
2015-04-03 14:31:03 +08:00
|
|
|
#include "../BaseTest.h"
|
2012-04-25 18:17:04 +08:00
|
|
|
|
2017-02-23 17:05:08 +08:00
|
|
|
DEFINE_TEST_SUITE(MultiTouchTests);
|
2015-04-03 14:31:03 +08:00
|
|
|
|
2017-02-23 17:05:08 +08:00
|
|
|
class MultiTouchTest : public TestCase
|
2012-04-25 18:17:04 +08:00
|
|
|
{
|
|
|
|
public:
|
2017-02-23 17:05:08 +08:00
|
|
|
CREATE_FUNC(MultiTouchTest);
|
2015-04-03 14:31:03 +08:00
|
|
|
|
|
|
|
virtual bool init() override;
|
2012-04-25 18:17:04 +08:00
|
|
|
|
2015-04-09 08:37:30 +08:00
|
|
|
void onTouchesBegan(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
|
|
|
void onTouchesMoved(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
|
|
|
void onTouchesEnded(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
|
|
|
void onTouchesCancelled(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
|
2012-04-25 18:17:04 +08:00
|
|
|
};
|
|
|
|
|
2017-02-23 17:05:08 +08:00
|
|
|
#endif /* __MULTITOUCHTEST_H__ */
|