mirror of https://github.com/axmolengine/axmol.git
27 lines
713 B
C++
27 lines
713 B
C++
#ifndef __MUTITOUCHTEST_H__
|
|
#define __MUTITOUCHTEST_H__
|
|
|
|
#include "../testBasic.h"
|
|
|
|
class MutiTouchTestLayer : public CCLayer
|
|
{
|
|
public:
|
|
bool init();
|
|
|
|
virtual void registerWithTouchDispatcher(void);
|
|
virtual void ccTouchesBegan(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
|
|
virtual void ccTouchesMoved(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
|
|
virtual void ccTouchesEnded(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
|
|
virtual void ccTouchesCancelled(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
|
|
|
|
CREATE_FUNC(MutiTouchTestLayer)
|
|
};
|
|
|
|
class MutiTouchTestScene : public TestScene
|
|
{
|
|
public:
|
|
virtual void runThisTest();
|
|
};
|
|
|
|
#endif /* __MUTITOUCHTEST_H__ */
|