//
// cocos2d::CCLayer::setMouseEnabled from 0x5cf3fa to 0x5cf43a (64 bytes)
//
// 1 xrefs:
// > TableView::TableView @ 0x2e8ec6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCLayer::setMouseEnabled(cocos2d::CCLayer *a1, bool a2)
{
_BOOL4 v2; // r5
_BOOL4 m_bRunning; // r3
cocos2d::CCMouseDelegate *v4; // r4
int (*getMouseDispatcher)(void); // r3
cocos2d::CCMouseDispatcher *v6; // r0
v2 = a2;
if ( a1->m_bMouseEnabled != a2 )
{
m_bRunning = a1->m_bRunning;
a1->m_bMouseEnabled = a2;
if ( m_bRunning )
{
v4 = &a1->cocos2d::CCMouseDelegate;
getMouseDispatcher = (int (*)(void))cocos2d::CCDirector::sharedDirector()->getMouseDispatcher;
v6 = (cocos2d::CCMouseDispatcher *)getMouseDispatcher();
if ( v2 )
cocos2d::CCMouseDispatcher::addDelegate(v6, v4);
else
cocos2d::CCMouseDispatcher::removeDelegate(v6, v4);
}
}
}