//
// cocos2d::CCMouseHandler::initWithDelegate from 0xb40ea4 to 0xb40ef4 (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCMouseHandler::handlerWithDelegate @ 0xb40fa0
// > ??> @ 0x2b2f0
// > ??> @ 0x121bda0
//
// 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
//
bool cocos2d::CCMouseHandler::initWithDelegate(cocos2d::CCMouseHandler *a1, cocos2d::CCMouseDelegate *a2)
{
cocos2d::CCObject *v2; // x0
a1->m_pDelegate = a2;
if ( a2 )
{
v2 = (cocos2d::CCObject *)_dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCMouseDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain(v2);
}
else
{
cocos2d::CCObject::retain(nullptr);
}
return 1;
}