// // CCScrollLayerExt::ccTouchMoved from 0x100301508 to 0x100301664 (348 bytes) // // 3 xrefs: // > TableView::ccTouchMoved @ 0x1002ffd30 // > sub_100301664 @ 0x100301668 // > @ 0x1007eb990 // // 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 CCScrollLayerExt::ccTouchMoved(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCDirector *v5; // x0 __n128 v6; // q0 float32x2_t *v7; // x0 double v8; // d0 float v9; // s8 float v10; // s0 double v11; // d0 CCScrollLayerExtDelegate *m_delegate; // x0 float32x2_t v13; // [xsp+8h] [xbp-38h] BYREF float32x2_t v14; // [xsp+10h] [xbp-30h] BYREF float32x2_t v15; // [xsp+18h] [xbp-28h] BYREF a1->m_touchDown = 1; cocos2d::CCTouch::getLocationInView(a2); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v5, (const cocos2d::CCPoint *)&v15); sub_1000229D0(&v15, (double *)&v14); if ( a1->m_touch == a2 ) { v6.n128_u64[0] = (unsigned __int64)sub_1000229F0(&v15, (float32x2_t *)&a1->m_touchPosition, &v14); if ( a1->m_disableVertical ) { v14.i32[1] = 0; } else if ( a1->m_disableHorizontal ) { v14.i32[0] = 0; } v7 = (float32x2_t *)((__int64 (__fastcall *)(CCContentLayer *, __n128))a1->m_contentLayer->getPosition)( a1->m_contentLayer, v6); *(float32x2_t *)&v8 = sub_1000229DC(v7, &v14, &v13); v9 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *, double))a1->getContentSize)(a1, v8) + 4); v10 = (float)((float)(v9 - *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer) + 4)) - a1->m_scrollLimitTop) - a1->m_peekLimitTop; if ( v13.f32[1] < v10 || (v10 = a1->m_scrollLimitBottom + a1->m_peekLimitBottom, v13.f32[1] > v10) ) v13.f32[1] = v10; ((void (__fastcall *)(CCContentLayer *, float32x2_t *))a1->m_contentLayer->setPosition)(a1->m_contentLayer, &v13); a1->m_notAtEndOfScroll = 1; v11 = sub_1000229D0(&a1->m_touchPosition, (double *)&v15); m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *, double))m_delegate->scrollViewTouchMoving)( m_delegate, a1, v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source