mirror of https://github.com/axmolengine/axmol.git
issue #5, implement
This commit is contained in:
parent
88ce1c8f83
commit
458ca18148
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue