《android 的按键映射表》.doc

Keymaps and Keyboard Input

This document describes how keyboard input gets translated into Android actions and how you can customize key layout and key character maps to match the needs of your own device.

Android uses the standard Linux input event device (/dev/event0) and driver as described in the linux/input.h kernel header file. For more information regarding standard Linux input drivers, please see Linux Input drivers at .

Android's input event device is structured around an interrupt or polling routine that captures the device-specific scancode and converts it to a standard form acceptable to Linux (as defined in input.h) before passing it to the kernel with input_event().

The keymap driver's other primary function is to establish a probe function that sets up the interrupt or polling function, handles hardware initialization, and attaches the driver to the input subsystem with input_register_device().

The table below describes the steps required to translate from keyboard input to application action:

StepActionExplanation1.Window manager reads key event from Linux keyboard driver. Events are typically positional. For example, the top-left position on a keypad returns 16 regardless of whether that key is printed with a Q (as on a QWERTY keypad) or an A (as on an AZERTY keypads). This first conversion by the Linux Keyboard Driver yields a scancode (for example, 16).2. Window manager maps scancode to keycode.When the window manager reads a key event out of the driver, it maps the scancode to a keycode using a key layout map file. Typically, the keycode is the primary symbol screen-printed on a key. For example, KEYCODE_DPAD_CENTER is the center button on the five-way navigation control. Even though ALT + G generates a "?" character, KEYCODE_G is the keycode.3. Window manager sends both the scancode and the keycode to the application.Both the scancode and keycode are handled by the view with focus. How the application interprets both depend on the

android 按键映射文件,《android 的按键映射表》.doc相关推荐

  1. kodi android 键盘,KODI按键映射,看IPTV按键设置

    KODI按键映射,看IPTV按键设置 2020-04-09 18:10:10 16点赞 76收藏 7评论 KODI播放器功能丰富,其中自定义按键功能也是强大,可以让用户修改各个场景下各个按键的功能,网 ...

  2. android模拟器游戏按键映射,刺激战场模拟器按键映射对比 逍遥安卓模拟器智能按键最好...

    原标题:刺激战场模拟器按键映射对比 逍遥安卓模拟器智能按键最好 绝地求生手游刺激战场模拟器现在有好多款,基本上每款模拟器都说自己是最好用的,绝大部分用户并不知道哪个刺激战场模拟器好,也没有时间和兴趣一 ...

  3. android 按键映射文件,按键映射专业版

    按键映射专业版,按键映射专业版可以用来自定义音量键, Home 键, 返回键以及最近的应用按键. 运行任意应用, 快捷方式或自定义操作.可对物理按键实行自定义单击, 双击和长按操作, 无需 Root ...

  4. android 按键kl文件,Android添加新按键

    1.前言 在Android开发中可能会遇到添加新的按键的需求,本文将简单介绍如何在Android系统中完成一个新的按键的添加. 当系统有新的按键需要添加时,Linux内核下的键码到Android系统中 ...

  5. Qt按键值与Windows Virtual-Key Codes映射表

    前言 在做远程控制/反向控制的时候,要远程模拟键盘按键事件发送,然后被控制端要根据相应的键值来响应.这里采用Qt去获取按键事件,然后映射到windows的对应的键盘键值,提供一个映射表,已基本包含所有 ...

  6. android编译.a文件,Android 7.1源码编译导入AS完整教程

    本教程仅针对Android 7.1系统,为便于虚拟机备份和出现问题时的还原,本教程分为3步:初始化编译环境.源码同步.编译源码导入Android Studio. 编译源码:Android7.1.2_r ...

  7. android 颜色资源文件,android中colors.xml颜色设置资源文件的方法

    1. 打开res目录下的values文件夹,双击打开colors.xml文件进行编辑 上代码 #008577 #00574B #D81B60 #ff0000 #0000ff 2. 在res目录下的la ...

  8. android添加动画文件,Android开发之图形图像与动画(五)LayoutAnimationController详解

    首先需要先介绍下LayoutAnimationController: * 1.LayoutAnimationController用于为一个layout里面的控件,或者是一个ViewGroup * 里面 ...

  9. android 生成aar文件,Android 中.aar文件生成方法与用法

    https://i.cnblogs.com/EditPosts.aspx?opt=1 无论是用Eclipse还是用Android Studio做android开发,都会接触到jar包,全称应该是:Ja ...

最新文章

  1. emoji 乱码_这个自制emoji的网站,让你成为永远不输的斗图王者
  2. python代码块所属关系的语法-天元高校邦数据科学通识课【Python基础语法】答案...
  3. Eboot 中给nandflash分区实现
  4. Vue+Openlayers+HIKVSION实现点击摄像头进行预览
  5. 为人示弱,做事留余 | 摸鱼系列
  6. Java精选笔记_JDBC
  7. linux 文件大小总和,linux磁盘占用跟每个文件夹大小总和不符?
  8. 给你的站点添加 DNS CAA 保护
  9. 机器学习 Machine Learning- 吴恩达Andrew Ng Week2-Octave
  10. (引用)Python 元素、元组、列表、字典的区别
  11. html5扑克游戏源码,Html5德州扑克 - WEB源码|其它源码|源代码 - 源码中国
  12. Cesium-相机系统与视域移动
  13. unity渲染篇:烘焙模型贴图
  14. 借记卡、贷记卡叫法的由来
  15. mac 上格式化磁盘出现MediaKit报告设备上的空间不足以执行请求的解决办法
  16. js折线图设置y轴刻度_d3.js实现自定义多y轴折线图
  17. 【OpenCV】边缘检测:Sobel、拉普拉斯算子
  18. 长得类似铁甲小宝的机器人_这部特摄剧除了大神以外,女配角也非常养眼,童年只看机器人系列...
  19. Linux学习笔记2:文件管理
  20. PowerBI-逻辑函数-IF

热门文章

  1. 制作一个小工具:自动生成“将特定枚举值转换成字符串的C++函数”的代码
  2. 主机渗透——CRC_3_PENTEST_2_WORDPRESS
  3. 去除杂波的梳状滤波器
  4. YD/T 1363.3-201X协议 通信局(站)电源、空调及环境集中监控管理系统
  5. 学习,自律,锻炼意味着更高的自由
  6. AD19过孔盖油处理
  7. 最新苹果开发者账号添加设备UDID​
  8. 蛇形矩阵 java_Java打印蛇形矩阵
  9. 科目三模拟灯光考试Java代码
  10. 使用PHP创建 PowerPoint2007 文档