//
// cocos2d::CCKeyboardDispatcher::removeDelegate from 0xdb2d64 to 0xdb2da8 (68 bytes)
//
// 3 xrefs:
// > cocos2d::CCLayer::setKeyboardEnabled @ 0xd5c7b4
// > cocos2d::CCLayer::onExit @ 0xd5e28c
// > ??> @ 0x9e518
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:40 +0000
//
cocos2d::CCKeyboardDelegate *__fastcall cocos2d::CCKeyboardDispatcher::removeDelegate(
cocos2d::CCKeyboardDelegate *this,
cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCKeyboardDelegate *v2; // x19
if ( a2 )
{
if ( *((_BYTE *)this + 64) )
{
v2 = this;
cocos2d::ccCArrayAppendValue(*((_QWORD *)this + 10), (__int64)a2);
this = (cocos2d::CCKeyboardDelegate *)((char *)&dword_0 + 1);
*((_BYTE *)v2 + 66) = (unsigned __int8)&dword_0 + 1;
}
else
{
return cocos2d::CCKeyboardDispatcher::forceRemoveDelegate(this, a2);
}
}
return this;
}