//
// cocos2d::CCKeyboardDispatcher::addDelegate from 0xb3fd54 to 0xb3fd98 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0xaeaa68
// > cocos2d::CCLayer::onEnter @ 0xaec45c
// > ??> @ 0x73e60
//
// 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);
}
}
}