找回密码
 注册
搜索
查看: 376|回复: 0

Adding a new key in MMI

[复制链接]
发表于 2007-7-3 12:36:34 | 显示全部楼层 |阅读模式
Adding a new key in MMI
In-order to add a new key in MMI so as to increase the total keys following things should
be done.
• Change TOTAL_KEYS define
• Make entry in PresentAllKeys structure.
• Make entry in the nKeyPadMap structure.
• Make entry in the nKeyToneMap structure.
• Change the skin and also make changes in the device structure for the new image.
• Use SetKeyhandler to register key handlers in the required application screens.


void mmi_frm_set_default_power_onoff_key(void)
{
#ifdef __MMI_POWER_ON_OFF_BY_POWER_KEY__
    SetKeyHandler(NULL, KEY_END, KEY_LONG_PRESS);
    SetKeyHandler(ShutdownSystemOperation, KEY_POWER, KEY_LONG_PRESS);
#else
    SetKeyHandler(ShutdownSystemOperation, KEY_END, KEY_LONG_PRESS);
#endif /* __MMI_POWER_ON_OFF_BY_POWER_KEY__ */
}

处理键盘事件
static void KeyEventHandler(KEYBRD_MESSAGE *eventKey)
高级模式
B Color Image Link Quote Code Smilies

本版积分规则

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

GMT+8, 2024-11-27 19:48 , Processed in 0.046031 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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