Patchwork [LUCID,4/6] HID: ntrig: Emit TOUCH with DOUBLETAP for single touch

mail settings
Submitter Chase Douglas
Date May 24, 2010, 1:54 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/53421/
State Accepted
Delegated to: Stefan Bader
Headers show


Chase Douglas - May 24, 2010, 1:54 p.m.
From: Rafi Rubin <>

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: Rafi Rubin <>
Signed-off-by: Jiri Kosina <>
(cherry picked from commit 2170c5a8ae4b952e517e7b0565528914ddc11320)


Signed-off-by: Chase Douglas <>
 drivers/hid/hid-ntrig.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


diff --git a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c
index f60454a..ff605dd 100644
--- a/drivers/hid/hid-ntrig.c
+++ b/drivers/hid/hid-ntrig.c
@@ -172,6 +172,8 @@  static int ntrig_event (struct hid_device *hid, struct hid_field *field,
 			if (!nd->reading_mt) {
 				input_report_key(input, BTN_TOOL_DOUBLETAP,
 						 (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_Y, nd->y);