将TouchPanel坐标转换为LCD坐标后,驱动程序需要虚拟按键映射文件才能将一个LCD坐标映射到虚拟按键。
https://source.android.com/devices/input/touch-devices#virtual-key-map-files 表示此地图文件必须存储在/ sys / board_properties中,但是我无法在手机上找到该目录
这是我的/ sys目录:
ls -al /sys
total 0
dr-xr-xr-x 14 root root 0 1971-05-19 05:43 .
drwxr-xr-x 21 root root 0 1971-05-19 05:43 ..
drwxr-xr-x 2 root root 0 1971-05-19 05:43 block
drwxr-xr-x 31 root root 0 1971-05-19 05:43 bus
drwxr-xr-x 88 root root 0 1971-05-19 05:43 class
drwxr-xr-x 4 root root 0 2018-12-20 17:49 dev
drwxr-xr-x 134 root root 0 1971-05-19 05:43 devices
drwxr-xr-x 3 root root 0 1971-05-19 05:43 firmware
drwxr-xr-x 9 root root 0 1971-05-19 05:43 fs
drwxr-xr-x 17 root root 0 1971-05-19 05:43 kernel
drwxr-xr-x 189 root root 0 1971-05-19 05:43 module
drwxr-xr-x 3 root root 0 1971-05-19 05:43 power
drwxr-xr-x 3 root root 0 1971-05-19 05:43 project_info
drwxr-xr-x 2 root root 0 1971-05-19 05:43 pwr_on_off_reason
由于这里没有虚拟键映射文件,android如何转换LCD坐标?