// // CCTextInputNode::rightClick from 0x140059150 to 0x140059350 (512 bytes) // // 2 xrefs: // > @ 0x14070d568 // > @ 0x14091052c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:25:41 +0000 // char __fastcall CCTextInputNode::rightClick(__int64 a1, float a2, float a3) { __int64 v3; // rdi __int64 i; // rbx __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax struct cocos2d::CCTouchDelegate *v9; // rbx cocos2d::CCTouchDispatcher *v10; // rax cocos2d::CCTouchHandler *Handler; // rsi __int64 v12; // rax int v13; // ebx __int64 v14; // rcx float *v15; // rax __int64 v16; // rdx __int64 v17; // rax _BYTE v19[16]; // [rsp+30h] [rbp-48h] BYREF char v20; // [rsp+80h] [rbp+8h] BYREF char v21; // [rsp+98h] [rbp+20h] BYREF v3 = a1 - 352; if ( !CCTextInputNode::isVisibleInTree(a1 - 352) || !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v3 + 912LL))(v3) ) { return 0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v20, a2, a3); if ( v3 ) { for ( i = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 504LL))(v3); i; i = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)i + 504LL))(i) ) { v6 = _RTDynamicCast( i, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCTouchClipper `RTTI Type Descriptor', 0); if ( v6 ) { if ( !(*(unsigned __int8 (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 8LL))(v6, &v20) ) return 0; } } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, (const struct cocos2d::CCPoint *)&v20); if ( !CCTextInputNode::containsTouchPoint(v3, v7) ) return 0; v8 = cocos2d::CCDirector::sharedDirector(); v9 = (struct cocos2d::CCTouchDelegate *)(v3 + 320); if ( !v3 ) v9 = nullptr; v10 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 144LL))(v8); Handler = cocos2d::CCTouchDispatcher::findHandler(v10, v9); if ( Handler ) { v12 = cocos2d::CCDirector::sharedDirector(); v13 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 144LL))(v12) + 128); if ( cocos2d::CCTouchHandler::getPriority(Handler) > v13 ) return 0; } v14 = *(_QWORD *)(a1 + 248); if ( v14 ) { if ( !(*(unsigned __int8 (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 40LL))(v14, v3) ) return 0; } cocos2d::CCRect::CCRect((cocos2d::CCRect *)v19, (const struct cocos2d::CCRect *)&unk_140909B68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, (const struct cocos2d::CCPoint *)&v20); CCTextInputNode::updateCursorPosition(v3, v15); if ( !*(_BYTE *)(a1 + 116) ) { LOBYTE(v16) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1032LL))(v3, v16); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, (const struct cocos2d::CCPoint *)&v20); CCTextInputNode::openEditMenu(v3, v17); return 1; }