//
// cocos2d::CCKeyboardDispatcher::removeDelegate from 0x808a00 to 0x808a22 (34 bytes)
//
// 2 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0x7d7584
// > cocos2d::CCLayer::onExit @ 0x7d856e
//
// 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:01:27 +0000
//
cocos2d::CCKeyboardDelegate *__fastcall cocos2d::CCKeyboardDispatcher::removeDelegate(
cocos2d::CCKeyboardDelegate *this,
cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCKeyboardDelegate *v2; // r4
v2 = this;
if ( a2 )
{
if ( *((_BYTE *)this + 56) )
{
this = (cocos2d::CCKeyboardDelegate *)cocos2d::ccCArrayAppendValue(*((_DWORD *)this + 16), (int)a2);
*((_BYTE *)v2 + 58) = 1;
}
else
{
return cocos2d::CCKeyboardDispatcher::forceRemoveDelegate(this, a2);
}
}
return this;
}