//
// cocos2d::CCMouseHandler::handlerWithDelegate from 0xb40f68 to 0xb40fe0 (120 bytes)
//
// 2 xrefs:
// > cocos2d::CCMouseDispatcher::forceAddDelegate @ 0xb40b9c
// > ??> @ 0x49008
//
// 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::CCMouseHandler *cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *a1)
{
cocos2d::CCMouseHandler *v1; // x19
v1 = (cocos2d::CCMouseHandler *)operator new(0x40u);
cocos2d::CCObject::CCObject(v1);
v1->__vftable = (cocos2d::CCMouseHandler_vtbl *)&off_121BD50;
if ( cocos2d::CCMouseHandler::initWithDelegate(v1, a1) )
{
cocos2d::CCObject::autorelease(v1);
return v1;
}
else
{
cocos2d::CCObject::release(v1);
return nullptr;
}
}