//
// cocos2d::CCMouseDispatcher::removeDelegate from 0x180045a30 to 0x180045a60 (48 bytes)
//
// 8 xrefs:
// > cocos2d::CCLayer::onExit @ 0x180050778
// > cocos2d::CCLayer::onExit @ 0x1800507a6
// > cocos2d::CCLayer::onExit @ 0x1800507d4
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x180050c52
// > cocos2d::CCLayer::setKeypadEnabled @ 0x180050cfd
// > cocos2d::CCLayer::setMouseEnabled @ 0x180050da2
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1704
//
// 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
//
// 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::CCObject *a2)
{
if ( a2 )
{
if ( this->m_bLocked )
{
sub_18009E170(this->m_pHandlersToRemove);
this->m_bToRemove = 1;
}
else
{
cocos2d::CCMouseDispatcher::forceRemoveDelegate(this, a2);
}
}
}