issue #5, implement

This commit is contained in:
Walzer 2010-07-30 09:18:20 +00:00
parent 88ce1c8f83
commit 458ca18148
2 changed files with 5 additions and 5 deletions

View File

@ -48,6 +48,7 @@ public:
virtual void onEnter();
virtual void onExit();
virtual bool ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent);
/** If isTouchEnabled, this method is called onEnter. Override it to change the
way CCLayer receives touch events.

View File

@ -128,12 +128,11 @@ void CCLayer::onExit()
[super onExit];*/
}
/** @todo CCTouch
-(BOOL) ccTouchBegan:(CCTouch *)touch withEvent:(UIEvent *)event
bool CCLayer::ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent)
{
NSAssert(NO, @"Layer#ccTouchBegan override me");
return YES;
}*/
NSAssert(false, "Layer#ccTouchBegan override me");
return true;
}
/// ColorLayer