//
// cocos2d::CCLayer::setKeyboardEnabled from 0x7d754a to 0x7d758a (64 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
//
_BYTE *__fastcall cocos2d::CCLayer::setKeyboardEnabled(_BYTE *this, int a2)
{
cocos2d::CCKeyboardDelegate *v3; // r4
int (*v4)(void); // r3
cocos2d::CCKeyboardDispatcher *v5; // r0
if ( (unsigned __int8)*(this + 287) != a2 )
{
*(this + 287) = a2;
if ( *(this + 224) )
{
v3 = (cocos2d::CCKeyboardDelegate *)(this + 276);
v4 = *(int (**)(void))(*(_DWORD *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this) + 96);
v5 = (cocos2d::CCKeyboardDispatcher *)v4();
if ( a2 )
return (_BYTE *)cocos2d::CCKeyboardDispatcher::addDelegate(v5, v3);
else
return (_BYTE *)cocos2d::CCKeyboardDispatcher::removeDelegate(v5, v3);
}
}
return this;
}