axmol/tests/cpp-tests/Classes/MutiTouchTest/MutiTouchTest.h

22 lines
616 B
C
Raw Normal View History

#ifndef __MUTITOUCHTEST_H__
#define __MUTITOUCHTEST_H__
#include "../BaseTest.h"
DEFINE_TEST_SUITE(MutiTouchTests);
class MutiTouchTest : public TestCase
{
public:
CREATE_FUNC(MutiTouchTest);
virtual bool init() override;
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);
};
#endif /* __MUTITOUCHTEST_H__ */