// // BoomScrollLayer::ccTouchMoved from 0x10012c5dc to 0x10012c7fc (544 bytes) // // 2 xrefs: // > sub_10012C7FC @ 0x10012c800 // > @ 0x100791c90 // // 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 // void __fastcall BoomScrollLayer::ccTouchMoved(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCPoint v3; // x29 cocos2d::CCPoint v4; // x30 cocos2d::CCPoint v5; // d8 cocos2d::CCPoint v6; // d9 cocos2d::CCPoint v7; // d10 cocos2d::CCPoint v8; // d11 cocos2d::CCDirector *v12; // x0 __n128 v13; // q0 BoomScrollLayerDelegate *m_delegate; // x0 float v15; // s8 float *v16; // x0 float v17; // s8 float v18; // s9 __n128 v19; // q1 __n128 v20; // q0 int v21; // w20 __n128 v22; // q0 __n128 v23; // q1 float v24; // s10 __int64 v25; // x8 __n128 v26; // q0 __n128 v27; // q1 float v28; // s9 cocos2d::CCDirector *v29; // x0 ExtendedLayer *m_extendedLayer; // x19 double v31; // [xsp+0h] [xbp-60h] BYREF cocos2d::CCPoint v32[11]; // [xsp+8h] [xbp-58h] BYREF cocos2d::CCPoint v33; // 0:s0.4,4:s1.4 if ( a1->m_touch == a2 ) { v32[1] = v8; v32[2] = v7; v32[3] = v6; v32[4] = v5; v32[9] = v3; v32[10] = v4; if ( (*(_BYTE *)(&a1->m_clippingRect + 1) & 1) == 0 ) { cocos2d::CCTouch::getLocationInView(a2); v12 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v12, v32); v13.n128_f64[0] = sub_1000229D0(v32, &v31); if ( a1->m_touchType == 1 ) goto LABEL_10; v13.n128_f32[0] = vabds_f32(v32[0].x, a1->m_touchX); if ( v13.n128_f32[0] >= a1->m_minimumTouchLengthToSlide ) { cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2); a1->m_pageMoving = 0; a1->m_touchType = 1; v13.n128_u32[0] = LODWORD(v32[0].x); a1->m_touchX = v32[0].x; if ( a1->m_cancelAndStealTouch ) BoomScrollLayer::cancelAndStoleTouch(a1, a2, a3); m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(BoomScrollLayerDelegate *, BoomScrollLayer *))m_delegate->scrollLayerScrollingStarted)( m_delegate, a1); } if ( a1->m_touchType == 1 ) { LABEL_10: v15 = (float)-a1->m_page; v16 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *, __n128))a1->getContentSize)(a1, v13); v17 = (float)(v32[0].x + (float)(v15 * (float)(*v16 - a1->m_pageOffset))) - a1->m_touchX; v18 = 0.0; v19.n128_u32[0] = 0; v20.n128_f32[0] = v17; sub_100022980(v20, v19, &v31); v21 = BoomScrollLayer::pageNumberForPosition(a1, v33); v22.n128_f32[0] = (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1) - a1->m_pageOffset) * (float)-v21; v23.n128_u32[0] = 0; sub_100022980(v22, v23, &v31); v24 = v17 - *(float *)&v31; if ( !v21 && v24 > 0.0 ) goto LABEL_16; v25 = 472; if ( a1->m_dynamic ) v25 = 440; if ( v21 == (unsigned int)sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v25)) - 1 && v24 < 0.0 ) { LABEL_16: v28 = v24 * a1->m_width; v29 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v29); v18 = v24 - (float)(v28 / *(float *)&v31); } m_extendedLayer = a1->m_extendedLayer; v26.n128_f32[0] = v17 - v18; v27.n128_u32[0] = 0; sub_100022980(v26, v27, &v31); ((void (__fastcall *)(ExtendedLayer *, double *))m_extendedLayer->setPosition)(m_extendedLayer, &v31); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source