// // CCTextInputNode::ccTouchBegan from 0x2fb4e8 to 0x2fb606 (286 bytes) // // 1 xrefs: // > `non-virtual thunk to'CCTextInputNode::ccTouchBegan @ 0x2fb610 // // 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 CCTextInputNode::ccTouchBegan(CCTextInputNode *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCDirector *v4; // r0 const cocos2d::CCPoint *v5; // r0 cocos2d::CCNode *v6; // r0 const cocos2d::CCPoint *v7; // r0 int v8; // r9 TextInputDelegate *m_delegate; // r0 cocos2d::CCPoint v10; // r1 cocos2d::CCPoint v12; // [sp+Ch] [bp-34h] BYREF cocos2d::CCPoint v13; // [sp+14h] [bp-2Ch] BYREF cocos2d::CCRect v14; // [sp+1Ch] [bp-24h] BYREF cocos2d::CCRect v15; // [sp+2Ch] [bp-14h] BYREF cocos2d::CCRect v16; // 0:r3.4,4:^0.12 BYREF cocos2d::CCTouch::getLocationInView((cocos2d::CCPoint *)&v16.size, a2); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::convertToGL(&v15.origin, v4, (const cocos2d::CCPoint *)&v16.size); cocos2d::CCPoint::operator=(&v16.size, &v15); cocos2d::CCNode::convertToWorldSpace(&v15.origin, a1, (const cocos2d::CCPoint *)&v16.size); cocos2d::CCPoint::operator=(&v16.size, &v15); cocos2d::CCNode::convertToNodeSpace(&v15.origin, a1, (const cocos2d::CCPoint *)&v16.size); cocos2d::CCPoint::operator=(&v16.size, &v15); v5 = a1->m_textField->getAnchorPoint(a1->m_textField); cocos2d::CCPoint::CCPoint(&v15.origin, v5); sub_2F62CC(&v14, (int)a1, &v15.origin.x); if ( a1->getParent(a1) ) { v6 = a1->getParent(a1); v7 = v6->getPosition(v6); cocos2d::CCPoint::CCPoint(&v12, v7); } else { cocos2d::CCPoint::CCPoint(&v12, 0.0, 0.0); } cocos2d::CCPoint::operator+(&v15, &v14, &v12); cocos2d::CCPoint::operator=(&v14, &v15); v8 = cocos2d::CCRect::containsPoint(&v14, (const cocos2d::CCPoint *)&v16.size); if ( v8 && ((m_delegate = a1->m_delegate) == nullptr || ((int (__fastcall *)(TextInputDelegate *, CCTextInputNode *))m_delegate->allowTextInput)(m_delegate, a1)) ) { a1->onClickTrackNode(a1, 1); cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)&v16.size); cocos2d::CCRect::CCRect(&v15, &v14); LODWORD(v10.x) = &v13; LODWORD(v10.y) = &v15; CCTextInputNode::updateCursorPosition(a1, v10, v16); } else { LOBYTE(v8) = 0; } return v8; }