diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-26 13:21:18 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-11-11 15:50:36 +1000 |
commit | 2ce305129ca94394096f4d697d51eb120de2940b (patch) | |
tree | 288f80f2151c1790f184e3a19f8f84ed06902a9f /autogen.sh | |
parent | Replace open_slot/close_slot with a SlotState enum (diff) | |
download | xf86-input-evdev-2ce305129ca94394096f4d697d51eb120de2940b.tar.gz xf86-input-evdev-2ce305129ca94394096f4d697d51eb120de2940b.tar.bz2 xf86-input-evdev-2ce305129ca94394096f4d697d51eb120de2940b.zip |
Skip event posting for empty slots.
ABS_MT_SLOT comes before any other events. The following order of events
is common for protocol B devices (and mtdev):
...
EV_SYN
ABS_MT_SLOT → posting here means we miss on the position information
ABS_MT_POSITION_X
ABS_MT_POSITION_Y
ABS_MT_SLOT
ABS_MT_POSITION_X
ABS_MT_POSITION_Y
EV_SYN
Store the stot state as SLOT_EMPTY after posting an event (i.e. EV_SYN and
ABS_MT_SLOT) and then don't post until the next slot/syn event.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions