//
// cocos2d::CCMouseHandler::initWithDelegate from 0x1002849f0 to 0x100284a34 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f2cf0
//
// 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 __fastcall cocos2d::CCMouseHandler::initWithDelegate(cocos2d::CCMouseHandler *a1, cocos2d::CCMouseDelegate *a2)
{
cocos2d::CCObject *v2; // rax
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;
}