//
// UIPOptionsLayer::ccTouchBegan from 0x8da7c0 to 0x8da8bc (252 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UIPOptionsLayer::ccTouchBegan @ 0x8da8c0
// > ??> @ 0x53ca0
// > ??> @ 0x119fc20
//
// 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 UIPOptionsLayer::ccTouchBegan(UIPOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
float v6; // s0
float v7; // s1
const cocos2d::CCPoint *v8; // x0
float v9; // s0
float v10; // s1
cocos2d::CCPoint v11; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF
__int64 v13; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCRect v14; // [xsp+68h] [xbp+68h] BYREF
cocos2d::CCTouch::getLocation(a2);
cocos2d::CCNode::convertToNodeSpace(a1, &v11);
if ( a1->m_touchID < 0 )
{
UIPOptionsLayer::getTouchRect(a1);
if ( (unsigned __int8)cocos2d::CCRect::containsPoint(&v14, &v12) )
{
a1->m_touchID = a2->m_nId;
cocos2d::CCPoint::operator=(&a1->m_touchPosition, v6, v7);
v8 = a1->m_practiceNode->getPosition(a1->m_practiceNode);
cocos2d::CCPoint::operator-(&v13, &v12, v8);
cocos2d::CCPoint::operator=(&a1->m_touchDelta, v9, v10);
}
}
return 1;
}