Commit 2170c5a8 authored by Rafi Rubin's avatar Rafi Rubin Committed by Jiri Kosina

HID: ntrig: Emit TOUCH with DOUBLETAP for single touch

I squelched TipSwitch in a recent patch which resulted in the loss
of Touch events for single touch firmwares.  This patch just puts Touch back
in for single touch, and bundles it with DoubleTap (like the multitouch code).
The two events are used to convey the same message to different drivers.
Signed-off-by: default avatarRafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 1ce31b25
...@@ -173,6 +173,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field, ...@@ -173,6 +173,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field,
if (!nd->reading_mt) { if (!nd->reading_mt) {
input_report_key(input, BTN_TOOL_DOUBLETAP, input_report_key(input, BTN_TOOL_DOUBLETAP,
(nd->confidence != 0)); (nd->confidence != 0));
input_report_key(input, BTN_TOUCH,
(nd->confidence != 0));
input_event(input, EV_ABS, ABS_X, nd->x); input_event(input, EV_ABS, ABS_X, nd->x);
input_event(input, EV_ABS, ABS_Y, nd->y); input_event(input, EV_ABS, ABS_Y, nd->y);
} }
......
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