// // CCTextInputNode::keyboardWillShow from 0x2f6328 to 0x2f63d8 (176 bytes) // // 1 xrefs: // > `non-virtual thunk to'CCTextInputNode::keyboardWillShow @ 0x2f63e0 // // 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 CCTextInputNode::keyboardWillShow(CCTextInputNode *a1, cocos2d::CCIMEKeyboardNotificationInfo *a2) { cocos2d::CCTextFieldTTF *m_textField; // r0 cocos2d::CCRect *p_end; // r5 const cocos2d::CCPoint *v5; // r0 float v6; // s16 float v7; // s15 TextInputDelegate *m_delegate; // r0 float v9; // s16 cocos2d::CCPoint v10; // [sp+4h] [bp-1Ch] BYREF cocos2d::CCRect v11; // [sp+Ch] [bp-14h] BYREF if ( !a1->m_forceOffset ) { m_textField = a1->m_textField; if ( m_textField ) { if ( a1->m_selected ) { p_end = &a2->end; v5 = (const cocos2d::CCPoint *)((int (__fastcall *)(cocos2d::CCTextFieldTTF *, cocos2d::CCIMEKeyboardNotificationInfo *))m_textField->getAnchorPoint)( m_textField, a2); cocos2d::CCPoint::CCPoint(&v10, v5); sub_2F62CC(&v11, (int)a1, &v10.x); v11.origin.y = v11.origin.y - 4.0; if ( cocos2d::CCRect::intersectsRect(&v11, p_end) ) { a1->m_unknown2 = 1; v6 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(p_end)); v7 = COERCE_FLOAT(cocos2d::CCRect::getMinY(&v11)); m_delegate = a1->m_delegate; v9 = v6 - v7; if ( m_delegate ) m_delegate->textInputShouldOffset(m_delegate, a1, COERCE_FLOAT(LODWORD(v9))); } } } } }