//
// cocos2d::CCMouseDispatcher::addDelegate from 0x180062eb0 to 0x180062ef4 (68 bytes)
//
// 4 xrefs:
// > cocos2d::CCLayer::onEnter @ 0x180052481
// > cocos2d::CCLayer::setMouseEnabled @ 0x180052ba7
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd7c8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:51 +0000
//
void __fastcall cocos2d::CCMouseDispatcher::addDelegate(
cocos2d::CCMouseDispatcher *this,
struct cocos2d::CCMouseDelegate *a2)
{
struct cocos2d::CCObject *v3; // rax
if ( a2 )
{
if ( *((_BYTE *)this + 64) )
{
sub_1800A1E00(*((_QWORD *)this + 9));
*((_BYTE *)this + 65) = 1;
}
else
{
v3 = cocos2d::CCMouseHandler::handlerWithDelegate(a2);
if ( v3 )
cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v3);
}
}
}