本文整理汇总了C++中CCEGLView::setIMEKeyboardState方法的典型用法代码示例。如果您正苦于以下问题:C++ CCEGLView::setIMEKeyboardState方法的具体用法?C++ CCEGLView::setIMEKeyboardState怎么用?C++ CCEGLView::setIMEKeyboardState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCEGLView
的用法示例。
在下文中一共展示了CCEGLView::setIMEKeyboardState方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: attachWithIME
bool CATextField::attachWithIME()
{
bool bRet = CAIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
#if(CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID||CC_TARGET_PLATFORM==CC_PLATFORM_IOS)
if (getKeyboardType() ==KEY_BOARD_TYPE_NORMAL)
{
pGlView->setIMEKeyboardDefault();
}
else if (getKeyboardType() ==KEY_BOARD_TYPE_NUMBER)
{
pGlView->setIMEKeyboardNumber();
}
else if(getKeyboardType() ==KEY_BOARD_TYPE_ALPHABET)
{
pGlView->setIMEKeyboardAlphabet();
}
#endif
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}
示例2: hideKeyboard
// #HLP_BEGIN
void CCDirector::hideKeyboard(){
if (s3eOSReadStringAvailable() == S3E_FALSE)
return;
CCEGLView * pGlView = s_SharedDirector->getOpenGLView();
pGlView->setIMEKeyboardState(false);
CCIMEDispatcher *d = CCIMEDispatcher::sharedDispatcher();
d->removeCurrentDelegate();
}
示例3: detachWithIME
bool CCTextFieldTTF::detachWithIME()
{
bool bRet = CCIMEDelegate::detachWithIME();
if (bRet)
{
// close keyboard
CCEGLView * pGlView = CCDirector::sharedDirector()->getOpenGLView();
if (pGlView)
{
pGlView->setIMEKeyboardState(false);
}
}
return bRet;
}
示例4: detachWithIME
bool CATextView::detachWithIME()
{
bool bRet = CAIMEDelegate::detachWithIME();
if (bRet)
{
// close keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
pGlView->setIMEKeyboardState(false);
}
}
return bRet;
}
示例5: attachWithIME
bool CCTextInput::attachWithIME()
{
bool bRet = CCIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CCDirector::sharedDirector()->getOpenGLView();
if (pGlView)
{
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}
示例6: detachWithIME
bool CCTextFieldTTF::detachWithIME()
{
this->unschedule(schedule_selector(CCTextFieldTTF::blick));
//std::string sText(m_pInputText->c_str());
CCLabelTTF::setString(m_pInputText->c_str());
bool bRet = CCIMEDelegate::detachWithIME();
if (bRet)
{
// close keyboard
CCEGLView * pGlView = CCDirector::sharedDirector()->getOpenGLView();
if (pGlView)
{
pGlView->setIMEKeyboardState(false);
}
}
return bRet;
}
示例7: attachWithIME
bool CATextField::attachWithIME()
{
bool bRet = CAIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
#if(CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM==CC_PLATFORM_IOS)
if (getKeyboardType() ==KEY_BOARD_TYPE_NORMAL)
{
pGlView->setIMEKeyboardDefault();
}
else if (getKeyboardType() ==KEY_BOARD_TYPE_NUMBER)
{
pGlView->setIMEKeyboardNumber();
}
else if(getKeyboardType() ==KEY_BOARD_TYPE_ALPHABET)
{
pGlView->setIMEKeyboardAlphabet();
}
if (getKeyboardReturnType() ==KEY_BOARD_RETURN_SEND)
{
pGlView->setIMEKeyboardReturnSend();
}
else if (getKeyboardReturnType() ==KEY_BOARD_RETURN_SEARCH)
{
pGlView->setIMEKeyboardReturnSearch();
}
else if(getKeyboardReturnType() ==KEY_BOARD_RETURN_DONE)
{
pGlView->setIMEKeyboardReturnDone();
}
#endif
this->showCursorMark();
m_pCursorMark->setCenterOrigin(CCPoint(getCursorX() + m_iHoriMargins, m_obContentSize.height / 2));
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}
示例8: attachWithIME
bool CATextView::attachWithIME()
{
bool bRet = CAIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
#if( CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS )
pGlView->setIMEKeyboardReturnEnter();
#endif
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}
示例9: attachWithIME
bool CCTextFieldTTF::attachWithIME()
{
bool bRet = CCIMEDelegate::attachWithIME();
if (bRet)
{
// open keyboard
CCEGLView * pGlView = CCDirector::sharedDirector()->getOpenGLView();
if (pGlView)
{
if (getKeyboardType() ==KEY_BOARD_TYPE_NORMAL) {
pGlView->setIMEKeyboardDefault();
}
else if (getKeyboardType() ==KEY_BOARD_TYPE_NUMBER) {
pGlView->setIMEKeyboardNumber();
}
pGlView->setIMEKeyboardState(true);
}
}
return bRet;
}
示例10: detachWithIME
bool CATextField::detachWithIME()
{
bool bRet = CAIMEDelegate::detachWithIME();
if (bRet)
{
// close keyboard
CCEGLView * pGlView = CAApplication::getApplication()->getOpenGLView();
if (pGlView)
{
#if(CC_TARGET_PLATFORM==CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM==CC_PLATFORM_IOS)
pGlView->setIMEKeyboardDefault();
pGlView->setIMEKeyboardReturnEnter();
#endif
pGlView->setIMEKeyboardState(false);
}
}
return bRet;
}