//
// cocos2d::CCKeyboardHandler::initWithDelegate from 0x809c74 to 0x809c98 (36 bytes)
//
// 1 xrefs:
// > cocos2d::CCKeyboardHandler::handlerWithDelegate @ 0x809d1e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:28 +0000
//
int __fastcall cocos2d::CCKeyboardHandler::initWithDelegate(
cocos2d::CCKeyboardHandler *this,
cocos2d::CCKeyboardDelegate *lpsrc)
{
cocos2d::CCKeyboardDelegate *v2; // r0
*((_DWORD *)this + 13) = lpsrc;
v2 = lpsrc;
if ( lpsrc )
v2 = (cocos2d::CCKeyboardDelegate *)_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((int)v2);
return 1;
}