// // BoomScrollLayer::ccTouchBegan from 0x10012c510 to 0x10012c5d4 (196 bytes) // // 2 xrefs: // > sub_10012C5D4 @ 0x10012c5d8 // > @ 0x100791c88 // // 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 BoomScrollLayer::ccTouchBegan(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { __int64 v3; // x29 __int64 v4; // x30 _BOOL4 v5; // w0 cocos2d::CCDirector *v8; // x0 cocos2d::CCPoint v10; // [xsp+8h] [xbp-38h] BYREF timeb v11; // [xsp+10h] [xbp-30h] BYREF __int64 v12; // [xsp+30h] [xbp-10h] __int64 v13; // [xsp+38h] [xbp-8h] if ( (*(_BYTE *)(&a1->m_clippingRect + 1) & 1) != 0 ) { LOBYTE(v5) = 0; } else { v12 = v3; v13 = v4; cocos2d::CCTouch::getLocationInView(a2); v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v8, &v10); sub_1000229D0(&v10, (double *)&v11.time); v5 = sub_100022C60((float *)&a1->m_rect.origin, (float *)&v10); if ( v5 ) { if ( a1->m_touch ) { LOBYTE(v5) = 0; } else { a1->m_touch = a2; ftime(&v11); a1->m_touchTime = (double)(v11.millitm + 1000 * (unsigned __int64)(v11.time & 0xFFFFF)) / 1000.0; a1->m_touchX = v10.x; a1->m_touchType = 0; LOBYTE(v5) = 1; } } } return v5; }