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 onEnter();
|
||||||
virtual void onExit();
|
virtual void onExit();
|
||||||
|
virtual bool ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent);
|
||||||
|
|
||||||
/** If isTouchEnabled, this method is called onEnter. Override it to change the
|
/** If isTouchEnabled, this method is called onEnter. Override it to change the
|
||||||
way CCLayer receives touch events.
|
way CCLayer receives touch events.
|
||||||
|
|
|
@ -128,12 +128,11 @@ void CCLayer::onExit()
|
||||||
[super onExit];*/
|
[super onExit];*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @todo CCTouch
|
bool CCLayer::ccTouchBegan(CCTouch *pTouch, UIEvent *pEvent)
|
||||||
-(BOOL) ccTouchBegan:(CCTouch *)touch withEvent:(UIEvent *)event
|
|
||||||
{
|
{
|
||||||
NSAssert(NO, @"Layer#ccTouchBegan override me");
|
NSAssert(false, "Layer#ccTouchBegan override me");
|
||||||
return YES;
|
return true;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
/// ColorLayer
|
/// ColorLayer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue