// // ScrollingLayer::ccTouchBegan from 0x1001b8b08 to 0x1001b8bbc (180 bytes) // // 2 xrefs: // > sub_1001B8BBC @ 0x1001b8bc0 // > @ 0x1007b40b8 // // 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 __fastcall ScrollingLayer::ccTouchBegan(ScrollingLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { int v5; // w0 cocos2d::CCDirector *v6; // x0 double v8; // [xsp+0h] [xbp-30h] BYREF cocos2d::CCPoint v9; // [xsp+8h] [xbp-28h] BYREF float v10[4]; // [xsp+10h] [xbp-20h] BYREF v5 = ((__int64 (__fastcall *)(ScrollingLayer *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->isVisible)(a1, a2, a3); if ( v5 ) { ScrollingLayer::getViewRect(a1); cocos2d::CCTouch::getLocationInView(a2); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(v6, &v9); sub_1000229D0(&v9, &v8); if ( a1->m_touchID == -1 ) { v5 = sub_100022C60(v10, (float *)&v9); if ( v5 ) { a1->m_touchID = a2->m_nId; sub_1000229D0(&a1->m_touchStartPosition, (double *)&v9); sub_1000229D0(&a1->m_touchPosition, (double *)&a1->m_touchStartPosition); LOBYTE(v5) = 1; } } else { LOBYTE(v5) = 0; } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source