diff mbox

[1/2] Emit TOUCH with DOUBLETAP for single touch

Message ID 1270850306-4949-1-git-send-email-rafi@seas.upenn.edu (mailing list archive)
State Accepted
Commit 2170c5a8ae4b952e517e7b0565528914ddc11320
Headers show

Commit Message

Rafi Rubin April 9, 2010, 9:58 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c
index a418f9e..58ba0d3 100644
--- a/drivers/hid/hid-ntrig.c
+++ b/drivers/hid/hid-ntrig.c
@@ -173,6 +173,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);
 			}