//
// cocos2d::CCKeypadDispatcher::addDelegate from 0xae1314 to 0xae1358 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setKeypadEnabled @ 0xaea9f8
// > cocos2d::CCLayer::onEnter @ 0xaec478
// > ??> @ 0x3cde0
//
// 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 = (unsigned __int8)&dword_0 + 1;
}
else
{
cocos2d::CCKeypadDispatcher::forceAddDelegate(a1, a2);
}
}
}