linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Emit TOUCH with DOUBLETAP for single touch
@ 2010-04-09 21:58 Rafi Rubin
  2010-04-09 21:58 ` [PATCH 2/2] Use TIPSWITCH for TOUCH Rafi Rubin
  2010-04-13 13:27 ` [PATCH 1/2] Emit TOUCH with DOUBLETAP for single touch Jiri Kosina
  0 siblings, 2 replies; 11+ messages in thread
From: Rafi Rubin @ 2010-04-09 21:58 UTC (permalink / raw)
  To: linux-input, jkosina; +Cc: micki, dmitry.torokhov, chatty, Rafi Rubin

Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
---

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.

I still would like to remove DoubleTap, though I think that should wait until
after users have a more motivation to migrate away from the wacom driver for
touch.

 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 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);
 			}
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-04-14  8:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-09 21:58 [PATCH 1/2] Emit TOUCH with DOUBLETAP for single touch Rafi Rubin
2010-04-09 21:58 ` [PATCH 2/2] Use TIPSWITCH for TOUCH Rafi Rubin
2010-04-13 13:31   ` Jiri Kosina
2010-04-13 20:04     ` Rafi Rubin
2010-04-14  5:04     ` [PATCH] Use TipSwitch for Touch Rafi Rubin
2010-04-14  6:32       ` Dmitry Torokhov
2010-04-14  7:51         ` Rafi Rubin
2010-04-14  8:07         ` Stéphane Chatty
2010-04-14  8:15         ` Mohamed Ikbel Boulabiar
2010-04-13 13:27 ` [PATCH 1/2] Emit TOUCH with DOUBLETAP for single touch Jiri Kosina
2010-04-13 20:01   ` Rafi Rubin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).