//
// cocos2d::CCKeyboardHandler::initWithDelegate from 0xdb4004 to 0xdb4054 (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCKeyboardHandler::handlerWithDelegate @ 0xdb4100
// > ??> @ 0x7f8e8
// > ??> @ 0x1531cf0
//
// 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
//
__int64 __fastcall cocos2d::CCKeyboardHandler::initWithDelegate(
cocos2d::CCKeyboardHandler *this,
cocos2d::CCKeyboardDelegate *lpsrc)
{
void *v2; // x0
*((_QWORD *)this + 7) = lpsrc;
if ( lpsrc )
{
v2 = _dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeyboardDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain((__int64)v2);
}
else
{
cocos2d::CCObject::retain(0);
}
return 1;
}