//
// cocos2d::CCKeyboardHandler::handlerWithDelegate from 0x5fbfdc to 0x5fc014 (56 bytes)
//
// 1 xrefs:
// > cocos2d::CCKeyboardDispatcher::forceAddDelegate @ 0x5fb152
//
// 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
//
cocos2d::CCKeyboardHandler *cocos2d::CCKeyboardHandler::handlerWithDelegate(cocos2d::CCKeyboardDelegate *a1)
{
cocos2d::CCKeyboardHandler *v2; // r4
v2 = (cocos2d::CCKeyboardHandler *)operator new(0x38u);
cocos2d::CCObject::CCObject(v2);
v2->__vftable = (cocos2d::CCKeyboardHandler_vtbl *)&off_AAF1B8;
if ( cocos2d::CCKeyboardHandler::initWithDelegate(v2, a1) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
cocos2d::CCObject::release(v2);
return nullptr;
}
return v2;
}