//
// cocos2d::CCKeyboardHandler::handlerWithDelegate from 0xb40a38 to 0xb40ab0 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCKeyboardDispatcher::forceAddDelegate @ 0xb3fd2c
// > ??> @ 0x918c0
//
// 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 *v1; // x19
v1 = (cocos2d::CCKeyboardHandler *)operator new(0x40u);
cocos2d::CCObject::CCObject(v1);
v1->__vftable = (cocos2d::CCKeyboardHandler_vtbl *)&off_121BC40;
if ( cocos2d::CCKeyboardHandler::initWithDelegate(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
cocos2d::CCObject::release(v1);
return nullptr;
}
}