// // GJRotationControl::updateSliderPosition from 0x1003fa974 to 0x1003faa48 (212 bytes) // // 1 xrefs: // > GJRotationControl::ccTouchMoved @ 0x1003faba4 // // 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 GJRotationControl::updateSliderPosition(GJRotationControl *a1, cocos2d::CCPoint a2) { float *v2; // x1 float v4; // s8 __n128 v5; // q1 __n128 v6; // q0 double v7; // d0 float v8; // s0 float m_currentRotation; // s1 GJRotationControlDelegate *m_delegate; // x0 double v11; // [xsp+8h] [xbp-28h] BYREF __float2 v12; // 0:kr00_8.8 v4 = atan2f(v2[1] - a1->m_cursorDifference.y, *v2 - a1->m_cursorDifference.x); v12 = __sincosf_stret(v4); v5.n128_f32[0] = (float)(v12.__sinval * 60.0) + 0.0; v6.n128_f32[0] = (float)(v12.__cosval * 60.0) + 0.0; sub_100022980(v6, v5, &v11); v7 = sub_1000229D0(&a1->m_controlPosition, &v11); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)( a1->m_controlSprite, &a1->m_controlPosition, v7); v8 = roundf((float)(v4 * -57.296) * 1000.0) / 1000.0; m_currentRotation = a1->m_currentRotation; if ( v8 != m_currentRotation ) { a1->m_currentRotation = v8; m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJRotationControlDelegate *, float))m_delegate->angleChanged)( m_delegate, v8 - m_currentRotation); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source