2012-04-25 18:17:04 +08:00
|
|
|
#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);
|
|
|
|
|
2012-06-14 15:13:16 +08:00
|
|
|
LAYER_CREATE_FUNC(MutiTouchTestLayer)
|
2012-04-25 18:17:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class MutiTouchTestScene : public TestScene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void runThisTest();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __MUTITOUCHTEST_H__ */
|