virtual bool ccTouchBegan(CCTouch *pTouch,CCEvent *pEvent);
virtual void ccTouchMoved(CCTouch *pTouch,CCEvent *pEvent);virtual void ccTouchEnded(CCTouch *pTouch,CCEvent *pEvent);
virtual void ccTouchCancelled(CCTouch *pTouch,CCEvent *pEvent);
// default implements are used to call script callback if exist
virtual void cctouchesBegan(CCSet *ptouches,CCEvent *pEvent);
virtual void cctouchesMoved(CCSet *ptouches,CCEvent *pEvent);
virtual void cctouchesEnded(CCSet *ptouches,CCEvent *pEvent);
virtual void cctouchesCancelled(CCSet *ptouches,CCEvent *pEvent);
cclayer里面的ccTouchBegan和cctouchesBegan到底调用哪个?
添加下面的代码:CCDirector::sharedDirector()->getTouchdispatcher()->addTargetedDelegate(this,true);就调用的是ccTouchBegan,