Commit 6f492f28 authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina

HID: multitouch: do not map usage from non used reports

hid-multitouch only handles touch events, so there is no point in
mapping other kind of events.
Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent a69c5f8b
...@@ -741,7 +741,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi, ...@@ -741,7 +741,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
* such as Mouse that might have the same GenericDesktop usages. */ * such as Mouse that might have the same GenericDesktop usages. */
if (field->application != HID_DG_TOUCHSCREEN && if (field->application != HID_DG_TOUCHSCREEN &&
field->application != HID_DG_TOUCHPAD) field->application != HID_DG_TOUCHPAD)
return 0; return -1;
/* eGalax devices provide a Digitizer.Stylus input which overrides /* eGalax devices provide a Digitizer.Stylus input which overrides
* the correct Digitizers.Finger X/Y ranges. * the correct Digitizers.Finger X/Y ranges.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment