// // GJRotationControl::ccTouchBegan from 0x6eb818 to 0x6eb914 (252 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJRotationControl::ccTouchBegan @ 0x6eb920 // // 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 11:57:32 +0000 // int __fastcall GJRotationControl::ccTouchBegan(int a1, int a2, int a3) { int v6; // r6 const cocos2d::CCPoint *v7; // r2 cocos2d::CCSpriteFrameCache *v8; // r0 int v9; // r4 void (__fastcall *v10)(int, int); // r5 cocos2d::CCSpriteFrameCache *v11; // r0 int v12; // r0 _BYTE v13[8]; // [sp+4h] [bp-18h] BYREF _BYTE v14[8]; // [sp+Ch] [bp-10h] BYREF if ( *(_DWORD *)(a1 + 344) != -1 ) return 0; if ( !ControlMenuTouch::began((_DWORD *)(a1 + 364), a2, a3) ) { if ( !(*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 356) + 176))(*(_DWORD *)(a1 + 356)) || (v6 = *(_DWORD *)(a1 + 356), cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v14), !CCTextInputNode::containsTouchPoint(v6)) ) { GJRotationControl::releaseInputFocus((GJRotationControl *)a1); cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v13); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v14, (const cocos2d::CCPoint *)a1); cocos2d::CCPoint::operator=(v13, v14); if ( COERCE_FLOAT(cocos2d::ccpDistance((cocos2d *)v13, (const cocos2d::CCPoint *)(a1 + 324), v7)) >= 24.0 ) return 0; *(_DWORD *)(a1 + 336) = *(_DWORD *)(a1 + 340); cocos2d::CCPoint::operator-(v14, v13, a1 + 324); cocos2d::CCPoint::operator=(a1 + 316, v14); v8 = *(cocos2d::CCSpriteFrameCache **)(a1 + 380); *(_DWORD *)(a1 + 344) = *(_DWORD *)(a2 + 52); if ( v8 ) v8 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(cocos2d::CCSpriteFrameCache *))(*(_DWORD *)v8 + 4))(v8); v9 = *(_DWORD *)(a1 + 332); v10 = *(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 580); v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v8); v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, "GJ_rotationControlBtn02_001.png"); v10(v9, v12); } } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source