//
// cocos2d::CCKeypadDispatcher::addDelegate from 0xd53f7c to 0xd53fc0 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setKeypadEnabled @ 0xd5c758
// > cocos2d::CCLayer::onEnter @ 0xd5e1d8
// > ??> @ 0x58258
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:07:42 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCKeypadDispatcher::addDelegate(
cocos2d::CCObject *this,
cocos2d::CCKeypadDelegate *a2)
{
cocos2d::CCObject *v2; // x19
if ( a2 )
{
if ( *((_BYTE *)this + 64) )
{
v2 = this;
cocos2d::ccCArrayAppendValue(*((_QWORD *)this + 9));
this = (cocos2d::CCObject *)((char *)&dword_0 + 1);
*((_BYTE *)v2 + 65) = (unsigned __int8)&dword_0 + 1;
}
else
{
return cocos2d::CCKeypadDispatcher::forceAddDelegate((cocos2d::CCArray **)this, a2);
}
}
return this;
}