From: Rafi Rubin Date: Fri, 9 Apr 2010 21:58:25 +0000 (-0400) Subject: HID: ntrig: Emit TOUCH with DOUBLETAP for single touch X-Git-Tag: upstream/snapshot3+hdmi~14685^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2170c5a8ae4b952e517e7b0565528914ddc11320;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Rafi Rubin Signed-off-by: Jiri Kosina --- 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); }