最終更新:2015-11-18 (水) 15:11:04 (1694d)  

.kl
Top / .kl

Key Layout Files

https://source.android.com/devices/input/key-layout-files.html

デフォルト

書式

キーコード

  • key 16 Q VIRTUAL
    key Linuxのキーコード Androidのキーコード

USBのUsage

  • key usage 0x0c006F BRIGHTNESS_UP
  • The HID usage is represented as a 32-bit integer, where the high 16-bits represent the HID usage page and the low 16-bits represent the HID usage ID.
    key usage HIDのUsage Anroidのキーコード
  • 上位16ビット:Usage Page
  • 下位16ビット:Usage ID

ポリシーフラグ

  • FUNCTION: The key should be interpreted as if the FUNCTION key were also pressed.
  • GESTURE: The key generated by a user gesture, such as palming the touchscreen.
  • VIRTUAL: The key is a virtual soft key (capacitive button) adjacent to the main touch screen. This causes special debouncing logic to be enabled (see below).

デバイス中

AOSP

デフォルトのファイル

AOSP/frameworks/native/include/input/InputDevice.h

読み込み

関連