//
// cocos2d::CCKeyboardHandler::initWithDelegate from 0x10043e240 to 0x10043e284 (68 bytes)
//
// 1 xrefs:
// > ??> @ 0x100938118
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall cocos2d::CCKeyboardHandler::initWithDelegate(
cocos2d::CCKeyboardHandler *a1,
cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCObject *v2; // rax
a1->m_pDelegate = a2;
if ( a2 )
{
v2 = (cocos2d::CCObject *)__dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCKeyboardDelegate,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
cocos2d::CCObject::retain(v2);
}
else
{
cocos2d::CCObject::retain(nullptr);
}
return 1;
}