aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_wac.h
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2014-12-10 16:26:04 -0800
committerJiri Kosina <jkosina@suse.cz>2014-12-11 23:01:56 +0100
commit601a22f3791473baa2923e4a3125e840279f8bba (patch)
tree18d6f81096220c62f249345ac1eefe96ba8bb6e2 /drivers/hid/wacom_wac.h
parentHID: wacom: Initialize MT slots for generic devices at post_parse_hid (diff)
downloadlinux-dev-601a22f3791473baa2923e4a3125e840279f8bba.tar.xz
linux-dev-601a22f3791473baa2923e4a3125e840279f8bba.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/hid/wacom_wac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h
index 5384043778fc..bfad815cda8a 100644
--- a/drivers/hid/wacom_wac.h
+++ b/drivers/hid/wacom_wac.h
@@ -145,6 +145,7 @@ struct wacom_features {
int pktlen;
bool check_for_hid_type;
int hid_type;
+ int last_slot_field;
};
struct wacom_shared {