// // ScrollingLayer::ccTouchBegan from 0x5a98f8 to 0x5a99f8 (256 bytes) // // 3 xrefs: // > `non-virtual thunk to'ScrollingLayer::ccTouchBegan @ 0x5a99fc // > @ 0xc5508 // > @ 0x11442e0 // // 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 ScrollingLayer::ccTouchBegan(ScrollingLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { char v5; // w20 cocos2d::CCDirector *v7; // x0 float v8; // s0 float v9; // s1 float v10; // s0 float v11; // s1 cocos2d::CCPoint v12; // [xsp+48h] [xbp+48h] BYREF cocos2d::CCRect v13; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v14; // 0:kr18_8.8 v5 = a1->isVisible(a1); if ( v5 ) { ScrollingLayer::getViewRect(a1); cocos2d::CCTouch::getLocationInView(a2); v7 = cocos2d::CCDirector::sharedDirector(); v14 = cocos2d::CCDirector::convertToGL(v7, &v12); cocos2d::CCPoint::operator=(&v12, v14.x, v14.y); if ( a1->m_touchID == -1 && (v5 = cocos2d::CCRect::containsPoint(&v13, &v12)) != 0 ) { a1->m_touchID = a2->m_nId; cocos2d::CCPoint::operator=(&a1->m_touchStartPosition, v8, v9); cocos2d::CCPoint::operator=(&a1->m_touchPosition, v10, v11); } else { return 0; } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source