D1H的触摸屏坐标数值怎么解析?
-
D1H插入一个USB鼠标设备,调用getevent回返回左边,但是这串HEX的X Y坐标怎么看?
/dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0003 0000 0000044a poll 5, returned 1 /dev/input/event1: 0003 0001 000009e3 poll 5, returned 1 /dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0003 0000 0000045b poll 5, returned 1 /dev/input/event1: 0003 0001 000009e9 poll 5, returned 1 /dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0003 0000 00000468 poll 5, returned 1 /dev/input/event1: 0003 0001 000009ed poll 5, returned 1 /dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0004 0004 00090001 poll 5, returned 1 /dev/input/event1: 0001 0110 00000000 poll 5, returned 1 /dev/input/event1: 0000 0000 00000000
-
-
@whycan 能不能在设备树直接缩放鼠标坐标,设备传来的横纵坐标太大了,还是只能应用层处理?
-
@lgkgkfg
鼠标传的是相对上次的位移吧,除以显示屏分辨率即可。 -
@whycan 有资料参考学习下吗
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号