|
有这样一个描述
/*****************************************************************************
* FUNCTION
* mmi_idle_set_rsk
* DESCRIPTION
* Set up LSK, RSK and CSK. If the softkey area of the idle screen already
* has other UI component (e.g., the native idle screen with the idle
* shortcut or the Venus idle screen), we cannot use
* Set[Left|Right|Center]SoftKey handler. We should use SetKeyHandler.
* PARAMETERS
* hdlr : [IN] Key handler
* event : [IN] Key event type
* RETURNS
* void
*****************************************************************************/
static void mmi_idle_set_rsk(FuncPtr hdlr, mmi_key_types_enum event)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (mmi_idle_is_softkey_area_present())
{
SetRightSoftkeyFunction(hdlr, event);
}
else
{
SetKeyHandler(hdlr, KEY_RSK, event);
}
}
如果在软键区域有其它UI组件的话,不能用Set[Left|Right|Center]SoftKey handler
should use SetKeyHandler.
问:MTK为什么要这样做,它这样做的原理是什么? |
|