//
// cocos2d::CCKeyboardDispatcher::addDelegate from 0x100203530 to 0x100203579 (73 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x1004b0c5d
// > cocos2d::CCLayer::onEnter @ 0x1004b0fb1
//
// 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 __fastcall cocos2d::CCKeyboardDispatcher::addDelegate(
cocos2d::CCKeyboardDispatcher *a1,
cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCKeyboardHandler *v2; // rax
if ( a2 )
{
if ( a1->m_bUnknown38 )
{
sub_100668440(a1->m_pUnknown3c, a2);
a1->m_bUnknown39 = 1;
}
else
{
v2 = cocos2d::CCKeyboardHandler::handlerWithDelegate(a2);
if ( v2 )
sub_10071FCD0(a1->m_pDelegates, v2);
}
}
}