//
// CCTextInputNode::keyboardWillHide from 0x10016d64c to 0x10016d6e0 (148 bytes)
//
// 2 xrefs:
// > sub_10016D6E0 @ 0x10016d6e4
// > ??> @ 0x10079fa78
//
// 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::keyboardWillHide(CCTextInputNode *a1, cocos2d::CCIMEKeyboardNotificationInfo *a2)
{
TextInputDelegate *m_delegate; // x0
TextInputDelegate *v4; // x0
if ( a1->m_forceOffset )
{
if ( a1->m_selected && a1->m_textField )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *))m_delegate->textInputReturn)(m_delegate, a1);
a1->m_selected = 0;
}
}
else if ( a1->m_textField )
{
if ( a1->m_unknown2 )
{
a1->m_unknown2 = 0;
v4 = a1->m_delegate;
if ( v4 )
((void (__fastcall *)(TextInputDelegate *, CCTextInputNode *))v4->textInputReturn)(v4, a1);
}
}
}