//
// cocos2d::CCKeypadDispatcher::addDelegate from 0x7d205a to 0x7d207c (34 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeypadEnabled @ 0x7d7538
// > cocos2d::CCLayer::onEnter @ 0x7d84de
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:00:35 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCKeypadDispatcher::addDelegate(
cocos2d::CCObject *this,
cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCObject *v2; // r4
v2 = this;
if ( a2 )
{
if ( *((_BYTE *)this + 56) )
{
this = (cocos2d::CCObject *)cocos2d::ccCArrayAppendValue(*((_DWORD *)this + 15));
*((_BYTE *)v2 + 57) = 1;
}
else
{
return cocos2d::CCKeypadDispatcher::forceAddDelegate((cocos2d::CCArray **)this, a2);
}
}
return this;
}