Skip to content

Commit 97065e0

Browse files
rydbergdtor
authored andcommitted
Input: clarify the no-finger event in multitouch protocol
The current documentation does not explicitly specify how to report zero fingers, leaving a potential problem in the driver implementations and giving no parsing directive to userland. This patch defines two equally valid ways. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
1 parent d90e6f6 commit 97065e0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎Documentation/input/multi-touch-protocol.txt‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,22 @@ like:
6868
SYN_MT_REPORT
6969
SYN_REPORT
7070

71+
Here is the sequence after lifting one of the fingers:
72+
73+
ABS_MT_POSITION_X
74+
ABS_MT_POSITION_Y
75+
SYN_MT_REPORT
76+
SYN_REPORT
77+
78+
And here is the sequence after lifting the remaining finger:
79+
80+
SYN_MT_REPORT
81+
SYN_REPORT
82+
83+
If the driver reports one of BTN_TOUCH or ABS_PRESSURE in addition to the
84+
ABS_MT events, the last SYN_MT_REPORT event may be omitted. Otherwise, the
85+
last SYN_REPORT will be dropped by the input core, resulting in no
86+
zero-finger event reaching userland.
7187

7288
Event Semantics
7389
---------------

0 commit comments

Comments
 (0)