]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Report input events for each finger on generic devices
authorJason Gerecke <killertofu@gmail.com>
Thu, 11 Dec 2014 00:26:04 +0000 (16:26 -0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 11 Dec 2014 22:01:56 +0000 (23:01 +0100)
commitbf7eb4f5d4bb4ec849498a39ab50b0ab307c259b
tree18d6f81096220c62f249345ac1eefe96ba8bb6e2
parent949265854600e2de461acfd2ed37fc92b136c361
HID: wacom: Report input events for each finger on generic devices

The existing generic touch code only reports events after reading an
entire HID report, which practically means that only data about the last
contact in a report will ever be provided to userspace. This patch uses
a trick from hid-multitouch.c to discover what type of field is at the
end of each contact; when such a field is encountered all the stored
contact data will be reported.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h