//
// cocos2d::CCKeyboardDispatcher::removeDelegate from 0x5fb1d0 to 0x5fb1f2 (34 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x5cf3f4
// > cocos2d::CCLayer::onExit @ 0x5d03de
//
// 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
//
void cocos2d::CCKeyboardDispatcher::removeDelegate(cocos2d::CCKeyboardDispatcher *a1, cocos2d::CCKeyboardDelegate *a2)
{
if ( a2 )
{
if ( a1->m_bUnknown38 )
{
cocos2d::ccCArrayAppendValue(&a1->m_pUnknown40->num, (cocos2d::_ccCArray *)a2);
a1->m_bUnknown3a = 1;
}
else
{
cocos2d::CCKeyboardDispatcher::forceRemoveDelegate(a1, a2);
}
}
}