//
// cocos2d::CCTouchHandler::initWithDelegate from 0x10000c524 to 0x10000c580 (92 bytes)
//
// 5 xrefs:
// > cocos2d::CCStandardTouchHandler::initWithDelegate @ 0x10000c5f4
// > cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x10000c654
// > cocos2d::CCTargetedTouchHandler::initWithDelegate @ 0x10000c740
// > ??> @ 0x100762e10
// > ??> @ 0x100762e78
//
// 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 __fastcall cocos2d::CCTouchHandler::initWithDelegate(
cocos2d::CCTouchHandler *a1,
cocos2d::CCTouchDelegate *a2,
int a3)
{
cocos2d::CCObject *v5; // x0
a1->m_pDelegate = a2;
if ( a2 )
v5 = (cocos2d::CCObject *)__dynamic_cast(
a2,
(const struct __class_type_info *)&off_100762DA0,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
-2);
else
v5 = nullptr;
cocos2d::CCObject::retain(v5);
a1->m_nPriority = a3;
a1->m_nEnabledSelectors = 0;
return 1;
}