android 按键映射qwerty.kl文件中的WAKE和WAKE_DROPPED的定义
16lz
2021-01-25
android系统中,获取到键盘的键值后,会搜索/system/usr/keylayout/gpio-keys.kl这个文件
key 115 VOLUME_UP WAKE_DROPPED
key 114 VOLUME_DOWN WAKE_DROPPED
key 102 HOME WAKE
如果code与其中的键值相对应,android就会响应对应的按键信息。
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
更多相关文章
- 一款常用的 Squid 日志分析工具
- GitHub 标星 8K+!一款开源替代 ls 的工具你值得拥有!
- RHEL 6 下 DHCP+TFTP+FTP+PXE+Kickstart 实现无人值守安装
- Linux 环境下实战 Rsync 备份工具及配置 rsync+inotify 实时同步
- Android有用的程序片段
- android 仓库下载分析
- Android(安卓)ListView分组布局改进
- Unity发布安卓9.0及以上版本不能访问http请求
- build.gradle配置参数详解