//
// cocos2d::CCKeyboardHandler::handlerWithDelegate from 0xdb40c8 to 0xdb4140 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCKeyboardDispatcher::forceAddDelegate @ 0xdb2c50
// > ??> @ 0xc06a0
//
// 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::CCObject *__fastcall cocos2d::CCKeyboardHandler::handlerWithDelegate(
cocos2d::CCKeyboardHandler *this,
cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCObject *v2; // x19
v2 = (cocos2d::CCObject *)operator new(0x40u);
cocos2d::CCObject::CCObject((__int64)v2);
*(_QWORD *)v2 = &off_1531CA0;
if ( (unsigned __int8)cocos2d::CCKeyboardHandler::initWithDelegate(v2, this) )
{
cocos2d::CCObject::autorelease(v2);
return v2;
}
else
{
cocos2d::CCObject::release(v2);
return nullptr;
}
}