// // CCScrollLayerExt::ccTouchMoved from 0x579a58 to 0x579be0 (392 bytes) // // 4 xrefs: // > `non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x579be4 // > TableView::ccTouchMoved @ 0x57cea8 // > @ 0x43950 // > @ 0x113a7c8 // // 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 CCScrollLayerExt::ccTouchMoved(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCDirector *v5; // x0 const cocos2d::CCPoint *v6; // x0 float v7; // s8 long double v8; // q0 float v9; // s0 float v10; // s1 CCScrollLayerExtDelegate *m_delegate; // x0 cocos2d::CCPoint v12; // [xsp+50h] [xbp+50h] BYREF __int64 v13; // [xsp+58h] [xbp+58h] BYREF __int64 v14; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint v15; // 0:kr08_8.8 a1->m_touchDown = 1; cocos2d::CCTouch::getLocationInView(a2); v5 = cocos2d::CCDirector::sharedDirector(); v15 = cocos2d::CCDirector::convertToGL(v5, &v12); cocos2d::CCPoint::operator=(&v12, v15.x, v15.y); if ( a1->m_touch == a2 ) { cocos2d::CCPoint::operator-(&v13, &v12, &a1->m_touchPosition); if ( a1->m_disableVertical ) { HIDWORD(v13) = 0; } else if ( a1->m_disableHorizontal ) { LODWORD(v13) = 0; } v6 = a1->m_contentLayer->getPosition(a1->m_contentLayer); cocos2d::CCPoint::operator+(&v14, v6, &v13); v7 = CCScrollLayerExt::getMinY(a1) - a1->m_peekLimitTop; *(float *)&v8 = CCScrollLayerExt::getMaxY(a1); if ( v7 <= *((float *)&v14 + 1) ) { *(float *)&v8 = *(float *)&v8 + a1->m_peekLimitBottom; if ( *(float *)&v8 < *((float *)&v14 + 1) ) HIDWORD(v14) = LODWORD(v8); } else { *((float *)&v14 + 1) = v7; } v9 = ((float (__fastcall *)(CCContentLayer *, __int64 *, long double))a1->m_contentLayer->setPosition)( a1->m_contentLayer, &v14, v8); a1->m_notAtEndOfScroll = 1; cocos2d::CCPoint::operator=(&a1->m_touchPosition, v9, v10); m_delegate = a1->m_delegate; if ( m_delegate ) m_delegate->scrollViewTouchMoving(m_delegate, a1); } }