mirror of https://github.com/axmolengine/axmol.git
issue #61:
This commit is contained in:
parent
b035165e25
commit
69762e4b4c
|
@ -36,7 +36,15 @@ CCTouchDelegate* CCTouchHandler::getDelegate(void)
|
||||||
|
|
||||||
void CCTouchHandler::setDelegate(CCTouchDelegate *pDelegate)
|
void CCTouchHandler::setDelegate(CCTouchDelegate *pDelegate)
|
||||||
{
|
{
|
||||||
|
if (m_pDelegate)
|
||||||
|
{
|
||||||
|
pDelegate->keep();
|
||||||
|
}
|
||||||
m_pDelegate = pDelegate;
|
m_pDelegate = pDelegate;
|
||||||
|
if (m_pDelegate)
|
||||||
|
{
|
||||||
|
m_pDelegate->destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int CCTouchHandler::getPriority(void)
|
int CCTouchHandler::getPriority(void)
|
||||||
|
|
Loading…
Reference in New Issue