//
// cocos2d::CCKeypadDispatcher::addDelegate from 0x5cad4a to 0x5cad6c (34 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeypadEnabled @ 0x5cf3a8
// > cocos2d::CCLayer::onEnter @ 0x5d034e
//
// 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::CCKeypadDispatcher::addDelegate(cocos2d::CCKeypadDispatcher *a1, cocos2d::CCKeypadDelegate *a2)
{
if ( a2 )
{
if ( a1->m_bLocked )
{
((void (__fastcall *)(cocos2d *__hidden, cocos2d::_ccCArray *))cocos2d::ccCArrayAppendValue)(
(cocos2d *)a1->m_pHandlersToAdd,
(cocos2d::_ccCArray *)a2);
a1->m_bToAdd = 1;
}
else
{
cocos2d::CCKeypadDispatcher::forceAddDelegate(a1, a2);
}
}
}