Just like:
virtual bool ccTouchBegan(CCTouch pTouch, CCEventpEvent) { CC_UNUSED_PARAM(pTouch);
I think that if CCKeypadDelegate’s event should can be eaten will be good.
consider this case:
1.FisrtLayer can response CCKeypadDelegate’s event,
and the SecondLayer as the same too.
2.when do followed code in SecondLayer:
@
void SecondLayer::keyBackClicked(){
CCDirector::sharedDirector()->replaceScene(CCTransitionFade::transitionWithDuration(0.5f, FisrtLayer::scene()));
}
@
Then the FisrtLayer will response the keyBackClicked event,but what if I don’t want the FirstLayer response this event when
the SecondLayer has response the keyBackClicked event.
So, I think the keyBackClicked event will be eaten by SecondLayer,therefore the FirstLayer will not responsed this event.