Android KeyHandler

Материал из Toshiba AC100 wiki
Перейти к навигации Перейти к поиску

Linux keys and Android keycodes

Android: KeyEvent
Linux: TODO - add link to the header file.
Mapping: keymaps/nvec_keyboard.kl

Sources and patches

http://review.cyanogenmod.org/#/c/78075/
https://github.com/CyanogenMod/android_frameworks_base/commits?author=aleho
https://github.com/jermaine151/device_asus_tf201/tree/master/asusdec
Temporary solution:
https://github.com/zombah/android_device_toshiba_paz00-common/commit/38a4f20f6f90db870a08b8726c1eb554bfdc110c
https://github.com/zombah/android_device_toshiba_ac100/commit/1ca8c0af3452e96a05656b4a0a12ebf9c766257f
https://github.com/Stuw/paz00_keyHandler

Key codes

Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения

Paz00 KeyHandler

Logs from paz00_keyHandler:

Menu - 6f/111

D/paz00_KeyHandler(  329): KeyEvent: action=0, flags=8, canceled=false, keyCode=112, deviceId=3, scanCode=111, metaState=0, repeatCount=0
D/paz00_KeyHandler(  329): KeyEvent: action=1, flags=8, canceled=false, keyCode=112, deviceId=3, scanCode=111, metaState=0, repeatCount=0

Screenshot - 63/99

D/paz00_KeyHandler(  329): KeyEvent: action=0, flags=8, canceled=false, keyCode=27, deviceId=3, scanCode=99, metaState=0, repeatCount=0
D/paz00_KeyHandler(  329): KeyEvent: action=1, flags=8, canceled=false, keyCode=27, deviceId=3, scanCode=99, metaState=0, repeatCount=0

WiFi - 42/66

D/paz00_KeyHandler(  329): KeyEvent: action=0, flags=8, canceled=false, keyCode=220, deviceId=3, scanCode=66, metaState=0, repeatCount=0
D/paz00_KeyHandler(  329): KeyEvent: action=1, flags=8, canceled=false, keyCode=220, deviceId=3, scanCode=66, metaState=0, repeatCount=0

Brighness up - 41/65

D/paz00_KeyHandler(  329): KeyEvent: action=0, flags=8, canceled=false, keyCode=224, deviceId=3, scanCode=65, metaState=0, repeatCount=0
D/paz00_KeyHandler(  329): KeyEvent: action=1, flags=8, canceled=false, keyCode=224, deviceId=3, scanCode=65, metaState=0, repeatCount=0

Brighness down - 40/64

D/paz00_KeyHandler(  329): KeyEvent: action=0, flags=8, canceled=false, keyCode=223, deviceId=3, scanCode=64, metaState=0, repeatCount=0
D/paz00_KeyHandler(  329): KeyEvent: action=1, flags=8, canceled=false, keyCode=223, deviceId=3, scanCode=64, metaState=0, repeatCount=0

Display - 3f/63

D/paz00_KeyHandler(  329): KeyEvent: action=0, flags=8, canceled=false, keyCode=170, deviceId=3, scanCode=63, metaState=0, repeatCount=0
D/paz00_KeyHandler(  329): KeyEvent: action=1, flags=8, canceled=false, keyCode=170, deviceId=3, scanCode=63, metaState=0, repeatCount=0