Android Hard Keypad

1.Hard keyboard's kl and kcm



By KeyEvent.java threre are 92 KEYCODE_XXX events,in fact we just use 41 key(not including POWER key).And we still add a new keycode.This file also define all event caused by key . According to different treatment ,Opal's 41 keys can be divided into three categories: system keys , modifier keys and the others(It's my own summary). The system keys include KEYCODE_MENU KEYCODE_HOME KEYCODE_CALL KEYCODE_VOLUME_UP KEYCODE_VOLUME_DOWN, KEYCODE_SEARCH (KEYCODE_CAMERA, KEYCODE_FOCUS and so on).These keys are function keys as their names. The modifier keys include: ALT_LEFT, SHIFT_LEFT.In fact the full keyboard include : ALT_LEFT,ALT_RIGHT, SHIFT_LEFT,SHIFT_RIGHT and SYM.They are boolean type ,by judging t he isAltPressed() isShiftPressed() isSymPressed() to make sure these keys whether are pressed.These keys are normally used combination with A~Z SPACE key and navigation keys.The ALT key can lock up-half character; the SHIFT key can lock the capital letters; the SYM key(if have this key) can access to all symbol screen and swith the IME.


Kl stand for key layout,it default file is qwerty.kl .It contains all keys' mapping between scancode and keycode.If we don't define any kl file ,the system will call this file ,and its path is /system/usr/keylayout/qwerty.kl in the handset. Usually we difine the KL files according to the actual keyboard layout on the phone. As follows there are several  hard keyboard layouts:QWERTY+EURO,AZERTY+EURO and QWERTY+Russian.The kind of the hard keypad is due to the alphabetical and dallor symbols. In fact Opal has 6 sets of keyboard : qwerty + $, qwerty + €, azerty + €, qwertz + €, qwerty+Russian, qwerty + £.

 

 


 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值