//
// cocos2d::CCLayer::setKeypadEnabled from 0x5cf372 to 0x5cf3ba (72 bytes)
//
// 0 xrefs:
//
// 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::CCLayer::setKeypadEnabled(cocos2d::CCLayer *a1, bool a2)
{
_BOOL4 v3; // r5
_BOOL4 m_bRunning; // r3
cocos2d::CCKeypadDelegate *v5; // r4
int (*getKeypadDispatcher)(void); // r3
cocos2d::CCKeypadDispatcher *v7; // r0
v3 = a2;
((void (__fastcall *)(cocos2d::CCLayer *))a1->setKeyboardEnabled)(a1);
if ( a1->m_bKeypadEnabled != v3 )
{
m_bRunning = a1->m_bRunning;
a1->m_bKeypadEnabled = v3;
if ( m_bRunning )
{
v5 = &a1->cocos2d::CCKeypadDelegate;
getKeypadDispatcher = (int (*)(void))cocos2d::CCDirector::sharedDirector()->getKeypadDispatcher;
v7 = (cocos2d::CCKeypadDispatcher *)getKeypadDispatcher();
if ( v3 )
cocos2d::CCKeypadDispatcher::addDelegate(v7, v5);
else
cocos2d::CCKeypadDispatcher::removeDelegate(v7, v5);
}
}
}