// // CCTextInputNode::keyboardWillShow from 0x10009f2f0 to 0x10009f414 (292 bytes) // // 2 xrefs: // > sub_10009F420 @ 0x10009f42c // > @ 0x1008b6c00 // // 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 __fastcall CCTextInputNode::keyboardWillShow(CCTextInputNode *a1, cocos2d::CCIMEKeyboardNotificationInfo *a2) { cocos2d::CCTextFieldTTF *m_textField; // rdi __int64 v5; // rsi double v6; // xmm0_8 __int64 v7; // rsi double v8; // xmm0_8 __int64 v9; // rax double v10; // xmm0_8 cocos2d::CCRect *p_end; // r14 double v12; // xmm0_8 double v13; // xmm0_8 TextInputDelegate *m_delegate; // rdi double v15; // xmm1_8 float v16[2]; // [rsp-3Ch] [rbp-3Ch] BYREF unsigned int v17; // [rsp-34h] [rbp-34h] float v18; // [rsp-30h] [rbp-30h] BYREF unsigned int v19; // [rsp-2Ch] [rbp-2Ch] float v20[10]; // [rsp-28h] [rbp-28h] BYREF if ( !a1->m_forceOffset ) { m_textField = a1->m_textField; if ( m_textField ) { if ( a1->m_selected ) { v5 = ((__int64 (__fastcall *)(cocos2d::CCTextFieldTTF *))m_textField->getAnchorPoint)(m_textField); v6 = sub_10028CC60(v16); sub_10028D130(&v18, v5, v6); v7 = ((__int64 (__fastcall *)(CCTextInputNode *))a1->getPosition)(a1); v8 = sub_10028CC90(); v9 = ((__int64 (__fastcall *)(CCTextInputNode *, __int64, double))a1->getContentSize)(a1, v7, v8); sub_10028CFF0(v20, v9); *(_QWORD *)&v10 = v19; v18 = v18 - (float)(v20[0] * v16[0]); *(float *)&v19 = (float)(*(float *)&v19 - (float)(v20[1] * v16[1])) + -4.0; *(float *)&v10 = *(float *)&v19; p_end = &a2->end; if ( (unsigned __int8)sub_10028D320(&v18, p_end, v10) ) { a1->m_unknown2 = 1; v12 = sub_10028D280(p_end); v17 = LODWORD(v12); v13 = sub_10028D2C0(&v18); m_delegate = a1->m_delegate; if ( m_delegate ) { *(_QWORD *)&v15 = v17; *(float *)&v15 = *(float *)&v17 - *(float *)&v13; ((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *, double))m_delegate->textInputShouldOffset)( m_delegate, a1, v15); } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source