framework/base/core/java/android/view/KeyEvent.java
所以知道上面的 value 對應值
ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上
2011年5月20日 星期五
Worklog : onKeyDown - Android source
都有 source code 真方便
因為更改了 hardware key definition ,所以 onKeyDown 反應的 Key value 也要改。
配合 debug Mode,可以看到每個按鍵的值 (在 TestMode的值)
L1 - No key L2 - 27 - KEYCODE_CAMERA L3 - 24 - KEYCODE_VOLUME_UP L4 - 25 - KEYCODE_VOLUME_DOWN
R1 - X - KEYCODE_A R2 - 82 - KEYCODE_MENU R3 - 4 - KEYCODE_B R4 - 4 - KEYCODE_BACK
onKeyDown 的 keycode 是定義在
標籤
- 3g (19)
- 工作的備worklog (93)
- 自言自語 (36)
- 草稿 (1)
- 亂亂寫 (8)
- 翻譯 (3)
- administration (76)
- alsa (7)
- android (299)
- apple (5)
- application (42)
- archlinux (1)
- audio (3)
- avr (6)
- backup_restore (2)
- bluetooth (5)
- bookmark (38)
- bootloader (21)
- browser (5)
- cellphone (28)
- command (8)
- Configuration (27)
- debug (7)
- django (1)
- driver (15)
- earphone (1)
- editor (1)
- EFL (1)
- ffmpeg (18)
- Filesystem (4)
- GCC (8)
- Gentoo (1)
- google (1)
- Graphic (3)
- hardware (40)
- hero (7)
- hibernation (9)
- iMX51 (38)
- Info (3)
- Install (30)
- java (4)
- Kernel (102)
- language (2)
- life (2)
- make (11)
- MantainLog (38)
- MCU_P (9)
- memo (8)
- microcontroller (3)
- MINGW (7)
- network (19)
- OpenCL (1)
- OS (11)
- package (3)
- pad (1)
- ProblemAndSolve (15)
- programming (8)
- Python (7)
- raspberry_pi (23)
- SDL (2)
- sensation (13)
- setup (3)
- software_package (36)
- SQL (1)
- suspend (2)
- ToDo (5)
- tool (3)
- ubuntu (1)
- VersionControl (45)
- Virtualization (15)
- VLC (5)
- wheezy (1)
- wifi (3)
- Windows (16)
- xiaomi (1)
- xperia (1)
網誌存檔
-
▼
2011
(244)
-
▼
5月
(22)
- htop -- the disk io status
- localize android repo -- more detail
- read soc register from /dev/mem
- notes :imx51 ipu
- v4l2 的 capture 取得 camera driver data 的 function : ...
- kernel : DEBUG - dev_dbg
- worklog - Android : add entry into 'About phones'
- u-boot : accessing the 2nd serial port
- Worklog : onKeyDown - Android source
- eclipse - open existing project
- Syntax error, annotations are only available if so...
- datasheet reading .. display port
- re-enable the splash screen in u-boot
- IOMUX & Pad CONFIG
- touch driver tracing
- pmic -- regulator & init call sequence
- key - power key
- Todo today
- Worklog - android suspend - II turn off the periph...
- wakelock in linux kernel
- Worklog - android suspend
- check project update - repo
-
▼
5月
(22)
沒有留言:
張貼留言