// // TouchControlEditLayer::beginDeadzoneDrag from 0x7a301c to 0x7a30d4 (184 bytes) // // 1 xrefs: // > TouchControlEditLayer::ccTouchBegan @ 0x7a331e // // 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:59:55 +0000 // int __fastcall TouchControlEditLayer::beginDeadzoneDrag( TouchControlEditLayer *this, GJUINode *a2, const cocos2d::CCPoint *a3) { char *v5; // r4 float v6; // s16 float v7; // r1 const cocos2d::CCPoint *v8; // r1 float v9; // r1 _BYTE v11[8]; // [sp+4h] [bp-Ch] BYREF v5 = (char *)this + 980; cocos2d::CCPoint::operator=((char *)this + 972, a3); *((_DWORD *)v5 + 2) = *((_DWORD *)a2 + 78); v6 = *((float *)a2 + 78); if ( v6 < COERCE_FLOAT(GameToolbox::touchUnitsForMM((GameToolbox *)0x3FCCCCCD, v7)) || COERCE_FLOAT(cocos2d::ccpLength(a3, v8)) < 1.0 ) { v9 = 1.0; LABEL_9: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9, 0.0); return cocos2d::CCPoint::operator=(v5, v11); } if ( !*((_BYTE *)a2 + 317) ) { if ( *(float *)a3 < 0.0 ) v9 = -1.0; else v9 = 1.0; goto LABEL_9; } cocos2d::ccpNormalize((cocos2d *)v11, a3); return cocos2d::CCPoint::operator=(v5, v11); }
GD Web Decomp Icon

GD Web Decomp

Raw Source