HID: hid-ntrig: multitouch cleanup and fix
authorRafi Rubin <rafi@seas.upenn.edu>
Sat, 13 Feb 2010 02:13:05 +0000 (21:13 -0500)
committerJiri Kosina <jkosina@suse.cz>
Tue, 16 Feb 2010 12:54:23 +0000 (13:54 +0100)
commitdbf2b17de505d390b5ecf5b5944fc0c88f6d66fe
tree26da975937205a3939557cac0cffc735450eb058
parentb0549cf1a35a92edf053d94066e60fb0ed02bb71
HID: hid-ntrig: multitouch cleanup and fix

This cleans up the identification of multitouch groups and enables
the end of group sync.

Taps are now explicitly handled to adjust for the changes in the
event stream in multitouch mode.  Added triple and quad tap for the
benefit of tools that recognize different tap types but do not have
full multi touch support.

This cleans up the behavior particularly for the latest firmware, which
didn't work particularly well with the older version of the driver.

In this form, when multitouch is active, both mt and st events will come out of
the "N-Trig MultiTouch" device.  And when its not st events will come out of
"N-Trig Touchscreen".

Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-ntrig.c