//
// cocos2d::CCMouseDispatcher::removeDelegate from 0x180047150 to 0x180047180 (48 bytes)
//
// 8 xrefs:
// > cocos2d::CCLayer::onExit @ 0x180052598
// > cocos2d::CCLayer::onExit @ 0x1800525c6
// > cocos2d::CCLayer::onExit @ 0x1800525f4
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x180052a72
// > cocos2d::CCLayer::setKeypadEnabled @ 0x180052b1d
// > cocos2d::CCLayer::setMouseEnabled @ 0x180052bc2
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb974
//
// 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:41 +0000
//
// Alternative name is '?removeDelegate@CCKeyboardDispatcher@cocos2d@@QEAAXPEAVCCKeyboardDelegate@2@@Z'
// Alternative name is '?removeDelegate@CCKeypadDispatcher@cocos2d@@QEAAXPEAVCCKeypadDelegate@2@@Z'
void __fastcall cocos2d::CCMouseDispatcher::removeDelegate(
cocos2d::CCMouseDispatcher *this,
struct cocos2d::CCMouseDelegate *a2)
{
if ( a2 )
{
if ( *((_BYTE *)this + 64) )
{
sub_1800A1E00(*((_QWORD *)this + 10));
*((_BYTE *)this + 66) = 1;
}
else
{
cocos2d::CCMouseDispatcher::forceRemoveDelegate(this, a2);
}
}
}