//
// UILayer::ccTouchEnded from 0x30db84 to 0x30dbfa (118 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'UILayer::ccTouchEnded @ 0x30dbfe
//
// 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
//
void UILayer::ccTouchEnded(UILayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int m_nId; // r1
double m_timestamp; // r4
m_nId = a2->m_nId;
if ( a1->m_inPlatformer )
{
if ( !a1->m_dualMode && a1->m_p1TouchId == m_nId )
goto LABEL_3;
UILayer::processUINodesTouch(a1, Ended, a2);
}
else
{
if ( a1->m_p1TouchId == m_nId )
{
LABEL_3:
a1->m_p1TouchId = -1;
GJBaseGameLayer::queueButton(a1->m_gameLayer, 1, 0, 0, a2->m_timestamp);
return;
}
if ( a1->m_p2TouchId == m_nId )
{
m_timestamp = a2->m_timestamp;
a1->m_p2TouchId = -1;
GJBaseGameLayer::queueButton(a1->m_gameLayer, 1, 0, 1, m_timestamp);
}
}
}