//
// cocos2d::CCKeyboardDispatcher::addDelegate from 0x5fb166 to 0x5fb188 (34 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x5cf3e8
// > cocos2d::CCLayer::onEnter @ 0x5d0364
//
// 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::addDelegate(cocos2d::CCKeyboardDispatcher *a1, cocos2d::CCKeyboardDelegate *a2)
{
if ( a2 )
{
if ( a1->m_bUnknown38 )
{
cocos2d::ccCArrayAppendValue(&a1->m_pUnknown3c->num, (cocos2d::_ccCArray *)a2);
a1->m_bUnknown39 = 1;
}
else
{
cocos2d::CCKeyboardDispatcher::forceAddDelegate(a1, a2);
}
}
}