//
// cocos2d::CCLayer::setKeyboardEnabled from 0x5cf3ba to 0x5cf3fa (64 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::setKeyboardEnabled(cocos2d::CCLayer *a1, bool a2)
{
_BOOL4 v2; // r5
_BOOL4 m_bRunning; // r3
cocos2d::CCKeyboardDelegate *v4; // r4
int (*getKeyboardDispatcher)(void); // r3
cocos2d::CCKeyboardDispatcher *v6; // r0
v2 = a2;
if ( a1->m_bKeyboardEnabled != a2 )
{
m_bRunning = a1->m_bRunning;
a1->m_bKeyboardEnabled = a2;
if ( m_bRunning )
{
v4 = &a1->cocos2d::CCKeyboardDelegate;
getKeyboardDispatcher = (int (*)(void))cocos2d::CCDirector::sharedDirector()->getKeyboardDispatcher;
v6 = (cocos2d::CCKeyboardDispatcher *)getKeyboardDispatcher();
if ( v2 )
cocos2d::CCKeyboardDispatcher::addDelegate(v6, v4);
else
cocos2d::CCKeyboardDispatcher::removeDelegate(v6, v4);
}
}
}