// // GJRotationControl::ccTouchBegan from 0x37bff4 to 0x37c0b0 (188 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJRotationControl::ccTouchBegan @ 0x37c0bc // // 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 GJRotationControl::ccTouchBegan(GJRotationControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { int v5; // r2 bool v6; // r3 int v7; // r2 bool v8; // r3 GJRotationControlDelegate *m_delegate; // r0 cocos2d::CCSprite *m_controlSprite; // r4 void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5 cocos2d::CCSpriteFrameCache *v12; // r0 cocos2d::CCSpriteFrame *v13; // r0 cocos2d::CCPoint v15; // [sp+4h] [bp-18h] BYREF cocos2d::CCPoint v16; // [sp+Ch] [bp-10h] BYREF if ( a1->m_touchID != -1 ) return 0; cocos2d::CCTouch::getLocation(&v15, a2); cocos2d::CCNode::convertToNodeSpace(&v16, a1, &v15); cocos2d::CCPoint::operator=((PlayerObject *)&v15, COERCE_FLOAT(&v16), v5, v6); if ( cocos2d::ccpDistance(&v15, &a1->m_controlPosition) >= 24.0 ) return 0; a1->m_startingRotation = a1->m_currentRotation; cocos2d::CCPoint::operator-(&v16, &v15, &a1->m_controlPosition); cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_cursorDifference, COERCE_FLOAT(&v16), v7, v8); m_delegate = a1->m_delegate; a1->m_touchID = a2->m_nId; if ( m_delegate ) m_delegate->angleChangeBegin(m_delegate); m_controlSprite = a1->m_controlSprite; setDisplayFrame = m_controlSprite->setDisplayFrame; v12 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v13 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v12, "GJ_rotationControlBtn02_001.png"); setDisplayFrame(m_controlSprite, v13); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source