//
// cocos2d::CCLayer::setKeypadEnabled from 0x7d7502 to 0x7d754a (72 bytes)
//
// 0 xrefs:
//
// 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:40 +0000
//
cocos2d::CCObject *__fastcall cocos2d::CCLayer::setKeypadEnabled(cocos2d::CCLayer *this, int a2)
{
cocos2d::CCObject *result; // r0
int v5; // r3
cocos2d::CCKeypadDelegate *v6; // r4
int (*v7)(void); // r3
cocos2d::CCObject *v8; // r0
result = (cocos2d::CCObject *)(*(int (__fastcall **)(cocos2d::CCLayer *))(*(_DWORD *)this + 544))(this);
if ( *((unsigned __int8 *)this + 286) != a2 )
{
v5 = *((unsigned __int8 *)this + 224);
*((_BYTE *)this + 286) = a2;
if ( v5 )
{
v6 = (cocos2d::CCLayer *)((char *)this + 272);
v7 = *(int (**)(void))(*(_DWORD *)cocos2d::CCDirector::sharedDirector(result) + 88);
v8 = (cocos2d::CCObject *)v7();
if ( a2 )
return cocos2d::CCKeypadDispatcher::addDelegate(v8, v6);
else
return cocos2d::CCKeypadDispatcher::removeDelegate(v8, v6);
}
}
return result;
}