//
// cocos2d::CCKeyboardHandler::initWithDelegate from 0xb40974 to 0xb409c4 (80 bytes)
//
// 3 xrefs:
// > cocos2d::CCKeyboardHandler::handlerWithDelegate @ 0xb40a70
// > ??> @ 0x5d330
// > ??> @ 0x121bc90
//
// 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 cocos2d::CCKeyboardHandler::initWithDelegate(cocos2d::CCKeyboardHandler *a1, cocos2d::CCKeyboardDelegate *a2)
{
cocos2d::CCObject *v2; // x0
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;
}