mt2503 Pluto FTE版本去除某一种虚拟键盘修改方法
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
PlutoFTE版本,会提供三种虚拟键盘,分别是qwertyVK、9键VK,和手写板,以下是去除某一种虚拟键盘方法。
[SOLUTION]
一、去除qwerty虚拟键盘
1、在此两个数组中将qwerty部分去除
staticconstU16g_imc_pen_ui_style_str_array[]={
//STR_IME_PEN_INPUT_STYLE_VK_QWERTY,
#ifdefined(__MMI_IME_ALPHANUMERIC_VK_SUPPORT__)
STR_IME_PEN_INPUT_STYLE_VK_ALPHANUMERIC,
#endif
/*alwaysputhandwritinginthelastone*/#if!defined(__NO_HANDWRITING__)
STR_IME_PEN_INPUT_STYLE_HW,
#endif
0
};
staticconstmmi_imc_pen_input_style_enumg_imc_pen_input_style[]={
//MMI_IMC_PEN_INPUT_STYLE_VK_QWERTY,
#ifdefined(__MMI_IME_ALPHANUMERIC_VK_SUPPORT__)
MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC,
#endif
/*alwaysputhandwritinginthelastone*/#if!defined(__NO_HANDWRITING__)
MMI_IMC_PEN_INPUT_STYLE_HW,
#endif
MMI_IMC_PEN_INPUT_STYLE_MAX
};
2、在函数mmi_imc_pen_select_input_style中修改如下:
if(count==1)
{
/*nohandle*/
}
elseif(count==2)
{
BOOLLCD_freeze;
/*theremustbeqwertyandalphanumericvkorhandwritingvk*/
if(g_imc_pen.input_type==MMI_IMC_PEN_INPUT_STYLE_VK_QWERTY)
{
/*thenewvkstylemaybealphanumericorhandwritingvk*/
#ifdefined(__MMI_IME_ALPHANUMERIC_VK_SUPPORT__)
if(!mmi_imc_is_rotated())
{
new_input_style=MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC;
}
else
#endif
{
#if!defined(__NO_HANDWRITING__)
if(!mmi_imc_is_handwriting_disabled())
{
new_input_style=MMI_IMC_PEN_INPUT_STYLE_HW;
}
#endif
}
}
elseif(g_imc_pen.input_type==MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC)//change
{
/*thenewvkstylemustbeqwertyvk*/
new_input_style=MMI_IMC_PEN_INPUT_STYLE_HW;//MMI_IMC_PEN_INPUT_STYLE_VK_QWERTY;
}
else//change
{
new_input_style=MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC;
}
3、修改切换VK类型的button图标
二、去除9键VK
在mmi_features.h中去除__MMI_IME_ALPHANUMERIC_VK_SUPPORT__定义
PlutoFTE版本,会提供三种虚拟键盘,分别是qwertyVK、9键VK,和手写板,以下是去除某一种虚拟键盘方法。
[SOLUTION]
一、去除qwerty虚拟键盘
1、在此两个数组中将qwerty部分去除
staticconstU16g_imc_pen_ui_style_str_array[]={
//STR_IME_PEN_INPUT_STYLE_VK_QWERTY,
#ifdefined(__MMI_IME_ALPHANUMERIC_VK_SUPPORT__)
STR_IME_PEN_INPUT_STYLE_VK_ALPHANUMERIC,
#endif
/*alwaysputhandwritinginthelastone*/#if!defined(__NO_HANDWRITING__)
STR_IME_PEN_INPUT_STYLE_HW,
#endif
0
};
staticconstmmi_imc_pen_input_style_enumg_imc_pen_input_style[]={
//MMI_IMC_PEN_INPUT_STYLE_VK_QWERTY,
#ifdefined(__MMI_IME_ALPHANUMERIC_VK_SUPPORT__)
MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC,
#endif
/*alwaysputhandwritinginthelastone*/#if!defined(__NO_HANDWRITING__)
MMI_IMC_PEN_INPUT_STYLE_HW,
#endif
MMI_IMC_PEN_INPUT_STYLE_MAX
};
2、在函数mmi_imc_pen_select_input_style中修改如下:
if(count==1)
{
/*nohandle*/
}
elseif(count==2)
{
BOOLLCD_freeze;
/*theremustbeqwertyandalphanumericvkorhandwritingvk*/
if(g_imc_pen.input_type==MMI_IMC_PEN_INPUT_STYLE_VK_QWERTY)
{
/*thenewvkstylemaybealphanumericorhandwritingvk*/
#ifdefined(__MMI_IME_ALPHANUMERIC_VK_SUPPORT__)
if(!mmi_imc_is_rotated())
{
new_input_style=MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC;
}
else
#endif
{
#if!defined(__NO_HANDWRITING__)
if(!mmi_imc_is_handwriting_disabled())
{
new_input_style=MMI_IMC_PEN_INPUT_STYLE_HW;
}
#endif
}
}
elseif(g_imc_pen.input_type==MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC)//change
{
/*thenewvkstylemustbeqwertyvk*/
new_input_style=MMI_IMC_PEN_INPUT_STYLE_HW;//MMI_IMC_PEN_INPUT_STYLE_VK_QWERTY;
}
else//change
{
new_input_style=MMI_IMC_PEN_INPUT_STYLE_VK_ALPHANUMERIC;
}
3、修改切换VK类型的button图标
二、去除9键VK
在mmi_features.h中去除__MMI_IME_ALPHANUMERIC_VK_SUPPORT__定义