找回密码
 注册
搜索
查看: 815|回复: 2

[讨论] 关于 35 09B setkeyhandler注册问题

[复制链接]
发表于 2010-12-11 10:15:36 | 显示全部楼层 |阅读模式
有这样一个描述

/*****************************************************************************
* 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为什么要这样做,它这样做的原理是什么?
发表于 2010-12-20 01:56:46 | 显示全部楼层
SetKeyHandler(hdlr, KEY_RSK, event);是物理按键
SetRightSoftkeyFunction包括了触屏相关的
点评回复

使用道具 举报

发表于 2010-12-18 16:34:02 | 显示全部楼层
进去看实现过程。。。
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-2-27 02:47 , Processed in 0.045382 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表