// // cocos2d::extension::CCControlPotentiometer::potentiometerMoved from 0x7acfd8 to 0x7ad0ae (214 bytes) // // 1 xrefs: // > cocos2d::extension::CCControlPotentiometer::ccTouchMoved @ 0x7ad0ee // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:00:04 +0000 // int __fastcall cocos2d::extension::CCControlPotentiometer::potentiometerMoved(int a1, const cocos2d::CCPoint *a2) { const cocos2d::CCPoint *v4; // r0 const cocos2d::CCPoint *v5; // r0 float v6; // r0 float v7; // s15 float v9[2]; // [sp+Ch] [bp-18h] BYREF float v10[2]; // [sp+14h] [bp-10h] BYREF float v11[2]; // [sp+1Ch] [bp-8h] BYREF float v12[2]; // [sp+24h] [bp+0h] BYREF v4 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 360) + 96))(*(_DWORD *)(a1 + 360)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v4); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, a2); v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 360) + 96))(*(_DWORD *)(a1 + 360)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, (const cocos2d::CCPoint *)(a1 + 364)); v6 = COERCE_FLOAT( cocos2d::extension::CCControlPotentiometer::angleInDegreesBetweenLineFromPoint_toPoint_toLineFromPoint_toPoint( a1, v9, v10, v11, v12)); v7 = v6; if ( v6 <= 180.0 ) { if ( v6 < -180.0 ) v7 = v6 + 360.0; } else { v7 = v6 - 360.0; } cocos2d::extension::CCControlPotentiometer::setValue( (cocos2d::extension::CCControlPotentiometer *)a1, *(float *)(a1 + 372) + (float)((float)(v7 / 360.0) * (float)(*(float *)(a1 + 380) - *(float *)(a1 + 376)))); return cocos2d::CCPoint::operator=(a1 + 364, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source