//
// cocos2d::CCTextFieldTTF::attachWithIME from 0x1001cb258 to 0x1001cb2a0 (72 bytes)
//
// 2 xrefs:
// > sub_1001CB2A0 @ 0x1001cb2a4
// > ??> @ 0x1007ba070
//
// 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
//
bool __fastcall cocos2d::CCTextFieldTTF::attachWithIME(cocos2d::CCTextFieldTTF *a1)
{
_BOOL4 v1; // w19
cocos2d::CCEGLView *m_pobOpenGLView; // x0
v1 = cocos2d::CCIMEDelegate::attachWithIME(&a1->cocos2d::CCIMEDelegate);
if ( v1 )
{
m_pobOpenGLView = cocos2d::CCDirector::sharedDirector()->m_pobOpenGLView;
if ( m_pobOpenGLView )
((void (__fastcall *)(cocos2d::CCEGLView *, __int64))m_pobOpenGLView->setIMEKeyboardState)(m_pobOpenGLView, 1);
}
return v1;
}