//
// TableView::ccTouchBegan from 0x1002ff554 to 0x1002ff5f8 (164 bytes)
//
// 2 xrefs:
// > sub_1002FFB8C @ 0x1002ffb90
// > ??> @ 0x1007eb358
//
// 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 TableView::ccTouchBegan(TableView *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
_BOOL4 v5; // w20
cocos2d::CCDirector *v6; // x0
double *v7; // x0
double v9; // [xsp+0h] [xbp-30h] BYREF
cocos2d::CCPoint v10; // [xsp+8h] [xbp-28h] BYREF
cocos2d::SEL_SCHEDULE v11; // 0:x1.16
v5 = CCScrollLayerExt::ccTouchBegan(a1, a2, a3);
if ( v5 )
{
a1->m_beginTouch = a2;
cocos2d::CCTouch::getLocationInView(a2);
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::convertToGL(v6, &v10);
sub_1000229D0(&a1->m_checkLocation, &v9);
sub_1000229D0(&a1->m_beginLocation, v7);
if ( !a1->m_scheduled )
{
v11.ptr = (void (__cdecl *)(float))TableView::checkBoundaryOfContent;
v11.adj = 0;
cocos2d::CCNode::schedule_1(a1, v11);
a1->m_scheduled = 1;
}
a1->m_touchLastY = a1->m_beginLocation.y;
}
return v5;
}