// // GJTransformControl::ccTouchBegan from 0x6b61b0 to 0x6b6390 (480 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJTransformControl::ccTouchBegan @ 0x6b6394 // > @ 0x2f910 // > @ 0x1157d10 // // 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 // bool GJTransformControl::ccTouchBegan(GJTransformControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { bool result; // w0 int v6; // w19 const cocos2d::CCPoint *v7; // x1 cocos2d::CCSprite *v8; // x0 float v9; // s0 float v10; // s1 int m_transformButtonType; // w1 cocos2d::CCSprite *v12; // x0 __int64 v13; // x0 float v14; // s0 float v15; // s1 cocos2d::CCSprite *v16; // x0 float v17; // s0 float v18; // s1 cocos2d::CCSprite *v19; // x0 float v20; // s0 float v21; // s1 GJTransformControlDelegate *m_delegate; // x0 cocos2d::CCPoint v23; // [xsp+60h] [xbp+60h] BYREF char v24; // [xsp+68h] [xbp+68h] BYREF char v25; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v26; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v27; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCRect v28; // [xsp+88h] [xbp+88h] BYREF result = 0; if ( a1->m_touchID == -1 ) { cocos2d::CCTouch::getLocation(a2); v6 = 1; cocos2d::CCNode::convertToNodeSpace(a1->m_mainNodeParent, &v23); cocos2d::CCNode::convertToNodeSpace(a1, &v23); cocos2d::CCPoint::CCPoint(&v26); v7 = (const cocos2d::CCPoint *)&v25; while ( 1 ) { cocos2d::CCPoint::CCPoint(&v27, v7); v8 = GJTransformControl::spriteByTag(a1, v6); cocos2d::CCNode::boundingBox(v8); if ( (unsigned __int8)cocos2d::CCRect::containsPoint(&v28, &v27) ) break; if ( ++v6 == 13 ) goto LABEL_9; if ( v6 == 12 ) v7 = (const cocos2d::CCPoint *)&v25; else v7 = (const cocos2d::CCPoint *)&v24; } a1->m_transformButtonType = v6; cocos2d::CCPoint::operator=(&v26, v9, v10); LABEL_9: m_transformButtonType = a1->m_transformButtonType; result = 0; if ( a1->m_transformButtonType ) { a1->m_touchID = a2->m_nId; v12 = GJTransformControl::spriteByTag(a1, m_transformButtonType); v13 = (__int64)v12->getPosition(v12); cocos2d::CCPoint::operator-(&v28, v13, &v26); cocos2d::CCPoint::operator=(&a1->m_cursorDifference, v14, v15); v16 = GJTransformControl::spriteByTag(a1, 7); v17 = ((float (__fastcall *)(cocos2d::CCSprite *))v16->getPosition)(v16); cocos2d::CCPoint::operator=(&a1->m_topRightPosition, v17, v18); v19 = GJTransformControl::spriteByTag(a1, 8); v20 = ((float (__fastcall *)(cocos2d::CCSprite *))v19->getPosition)(v19); cocos2d::CCPoint::operator=(&a1->m_bottomLeftPosition, v20, v21); m_delegate = a1->m_delegate; if ( m_delegate ) m_delegate->transformChangeBegin(m_delegate); result = 1; if ( a1->m_transformButtonType == 12 ) a1->m_rotationX = a1->m_rotationY; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source