我正在尝试使用 mtdev-test 来处理触摸板多点触控事件,因为 Solus 操作系统还没有 evtest。
所以我找到了一个名为 mtdev-test 的神奇命令,但我无法真正弄清楚这个输出的含义。我发现第二列可能代表手指数(00=1,01=2,02=3,...),但我不知道其他人的意思。
我试图在以下位置找到一些信息: https ://github.com/torvalds/linux/blob/master/drivers/input/mouse/elantech.c
和
https://www.kernel.org/doc/Documentation/input/elantech.txt
并且
https://www.kernel.org/doc/Documentation/input/event-codes.txt
也许我真的很想找到这三者之间的关系。
我的目标是以某种方式使用 java/python/whatever 将 mtdev-test 的输出转换为人类可理解的数据并检测每个手指的 X&Y
unicornponny@unicornponny ~ $ sudo mtdev-test /dev/input/event14
supported mt events:
ABS_MT_SLOT
ABS_MT_TOUCH_MAJOR
ABS_MT_POSITION_X
ABS_MT_POSITION_Y
ABS_MT_TRACKING_ID
ABS_MT_PRESSURE
0159b6c31962 00 3 0039 3588
0159b6c31962 00 3 0035 2049
0159b6c31962 00 3 0036 690
0159b6c31962 00 3 003a 25
0159b6c31962 00 3 0030 624
0159b6c31962 00 3 001c 4
0159b6c31962 00 1 014a 1
0159b6c31962 00 1 0145 1
0159b6c31962 00 3 0000 2049
0159b6c31962 00 3 0001 690
0159b6c31962 00 3 0018 25
0159b6c31962 00 0 0000 0
0159b6c31969 00 3 003a 21
0159b6c31969 00 3 0018 21
0159b6c31969 00 0 0000 0
0159b6c3196f 00 3 0030 156
0159b6c3196f 00 3 001c 1
0159b6c3196f 00 0 0000 0
0159b6c31979 00 3 0039 -1
0159b6c31979 00 1 014a 0
0159b6c31979 00 1 0145 0
0159b6c31979 00 3 0018 0
0159b6c31979 00 0 0000 0
那么任何人都可以解释它是如何工作的,这些数据意味着什么,或者有人知道我没有找到的任何资源吗?