//
// cocos2d::CCMouseDispatcher::addDelegate from 0x1002fe23c to 0x1002fe284 (72 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setMouseEnabled @ 0x100148bb4
// > cocos2d::CCLayer::onEnter @ 0x100148db8
//
// 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 __fastcall cocos2d::CCMouseDispatcher::addDelegate(cocos2d::CCMouseDispatcher *a1, cocos2d::CCMouseDelegate *a2)
{
if ( a2 )
{
if ( a1->m_bLocked )
{
sub_100353C08(a1->m_pHandlersToAdd, a2);
a1->m_bToAdd = 1;
}
else
{
sub_1002FE284();
}
}
}