// // GJScaleControl::valueFromScale from 0x6958c0 to 0x6958fc (60 bytes) // // 7 xrefs: // > GJScaleControl::ccTouchMoved @ 0x695bc4 // > GJScaleControl::ccTouchMoved @ 0x695c10 // > GJScaleControl::ccTouchMoved @ 0x695d9c // > GJScaleControl::loadValues @ 0x6ba248 // > GJScaleControl::loadValues @ 0x6ba260 // > GJScaleControl::loadValues @ 0x6ba288 // > @ 0x7e750 // // 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 // float GJScaleControl::valueFromScale(GJScaleControl *a1, float a2) { float result; // s0 result = (float)(a2 - a1->m_lowerBound) / (float)(a1->m_upperBound - a1->m_lowerBound); if ( result >= 1.0 ) return 1.0; if ( result <= 0.0 ) return 0.0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source