// // UIOptionsLayer::ccTouchBegan from 0x1402a3d00 to 0x1402a3e44 (324 bytes) // // 2 xrefs: // > @ 0x140576780 // > @ 0x1406d2000 // // 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 UIOptionsLayer::ccTouchBegan(UIOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { int v5; // ebp int v6; // edi GJUINode *v7; // rbx struct cocos2d::CCPoint v8; // rax int v9; // eax __int64 v10; // rax struct cocos2d::CCPoint v12[7]; // [rsp+20h] [rbp-38h] BYREF struct cocos2d::CCPoint v13; // [rsp+78h] [rbp+20h] BYREF cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace((UIOptionsLayer *)((char *)a1 - 320), &v13); v5 = 1; if ( LOBYTE(a1->m_controlConnected) ) v5 = 4; v6 = 0; while ( 1 ) { v7 = nullptr; if ( v6 ) { switch ( v6 ) { case 1: v7 = (GJUINode *)a1->SetupTriggerPopup::TextInputDelegate::__vftable; break; case 2: v7 = (GJUINode *)a1->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable; break; case 3: v7 = (GJUINode *)a1->SetupTriggerPopup::SliderDelegate::__vftable; break; } } else { v7 = *(GJUINode **)&a1->m_joystickConnected; } if ( v7->isVisible(v7) ) { v8 = cocos2d::CCNode::convertToNodeSpace(v7, v12); if ( GJUINode::touchTest(v7, v8) ) break; } if ( ++v6 >= v5 ) return 1; } if ( LOBYTE(a1->m_controlConnected) ) { v9 = v7->getTag(v7); UIOptionsLayer::toggleUIGroup((UIOptionsLayer *)((char *)a1 - 320), v9); } v7->m_touchID = a2->m_nId; cocos2d::CCPoint::operator=(&v7->m_touchPosition, &v13); v10 = (__int64)v7->getPosition_0(v7); cocos2d::CCPoint::operator-(&v13, v12, v10); cocos2d::CCPoint::operator=(&v7->m_touchDelta, v12); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source