本文整理汇总了C++中CCEGLView::setIMEKeyboardReturnEnter方法的典型用法代码示例。如果您正苦于以下问题:C++ CCEGLView::setIMEKeyboardReturnEnter方法的具体用法?C++ CCEGLView::setIMEKeyboardReturnEnter怎么用?C++ CCEGLView::setIMEKeyboardReturnEnter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCEGLView
的用法示例。
在下文中一共展示了CCEGLView::setIMEKeyboardReturnEnter方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
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();
}
else if(getKeyboardReturnType() == KEY_BOARD_RETURN_ENTER)
{
pGlView->setIMEKeyboardReturnEnter();
}
#endif
pGlView->setIMEKeyboardState(true);
setCursorPosition();
}
}
return bRet;
}
示例2: 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;
}
示例3: 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;
}