// // CCTextInputNode::keyboardWillShow from 0x595270 to 0x595378 (264 bytes) // // 3 xrefs: // > `non-virtual thunk to'CCTextInputNode::keyboardWillShow @ 0x59537c // > @ 0x50328 // > @ 0x1141330 // // 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; // x0 cocos2d::CCRect *p_end; // x21 const cocos2d::CCPoint *v5; // x0 float v6; // s0 float v7; // s8 TextInputDelegate *m_delegate; // x0 float v9; // s0 float v10; // s0 cocos2d::CCPoint v11; // [xsp+40h] [xbp+40h] BYREF cocos2d::CCRect v12; // [xsp+48h] [xbp+48h] BYREF if ( !a1->m_forceOffset ) { m_textField = a1->m_textField; if ( m_textField ) { if ( a1->m_selected ) { p_end = &a2->end; v5 = m_textField->getAnchorPoint(m_textField); cocos2d::CCPoint::CCPoint(&v11, v5); sub_5951D8((__int64)a1, (float *)&v11, &v12); v12.origin.y = v12.origin.y - 4.0; if ( (unsigned __int8)cocos2d::CCRect::intersectsRect(&v12, p_end) ) { a1->m_unknown2 = 1; cocos2d::CCRect::getMaxY(p_end); v7 = v6; cocos2d::CCRect::getMinY(&v12); m_delegate = a1->m_delegate; v10 = v7 - v9; if ( m_delegate ) m_delegate->textInputShouldOffset(m_delegate, a1, v10); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source