mirror of https://github.com/axmolengine/axmol.git
fixed #926: retain/release in Paddle
This commit is contained in:
parent
fcb2294e20
commit
08e0be754b
|
@ -82,3 +82,13 @@ void Paddle::ccTouchEnded(CCTouch* touch, CCEvent* event)
|
|||
|
||||
m_state = kPaddleStateUngrabbed;
|
||||
}
|
||||
|
||||
void Paddle::touchDelegateRetain()
|
||||
{
|
||||
this->retain();
|
||||
}
|
||||
|
||||
void Paddle::touchDelegateRelease()
|
||||
{
|
||||
this->release();
|
||||
}
|
|
@ -28,6 +28,9 @@ public:
|
|||
virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
|
||||
virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);
|
||||
|
||||
virtual void touchDelegateRetain();
|
||||
virtual void touchDelegateRelease();
|
||||
|
||||
static Paddle* paddleWithTexture(CCTexture2D* aTexture);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue