]> git.baikalelectronics.ru Git - kernel.git/commit
Input: introduce MT event slots
authorHenrik Rydberg <rydberg@euromail.se>
Fri, 16 Jul 2010 06:10:10 +0000 (23:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 Jul 2010 06:52:03 +0000 (23:52 -0700)
commit2cd1bd671d7868441d61f3080c960332278b45f6
treed8c12e13e71f411b4f66aa44ec9b23935156e49d
parent4257a4cf7ea0f6048b91ca4f13cad2493c0ad68e
Input: introduce MT event slots

With the rapidly increasing number of intelligent multi-contact and
multi-user devices, the need to send digested, filtered information
from a set of different sources within the same device is imminent.
This patch adds the concept of slots to the MT protocol. The slots
enumerate a set of identified sources, such that all MT events
can be passed independently and selectively per identified source.

The protocol works like this: Instead of sending a SYN_MT_REPORT
event immediately after the contact data, one sends an ABS_MT_SLOT
event immediately before the contact data. The input core will only
emit events for slots with modified MT events. It is assumed that
the same slot is used for the duration of an initiated contact.

Acked-by: Ping Cheng <pingc@wacom.com>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c
drivers/input/input.c
include/linux/input.h