diff options
author | Rafi Rubin <rafi@seas.upenn.edu> | 2010-02-16 10:22:11 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-02-16 11:56:20 -0500 |
commit | ff5cf34c809cd5950579e46e7c10c29bc647aaf1 (patch) | |
tree | 99ad8a404ba5bf7f567e77adc11cebee3f710581 | |
parent | dbf2b17de505d390b5ecf5b5944fc0c88f6d66fe (diff) |
HID: hid-ntrig: Single touch mode tap
Add DOUBLETAP to events emitted when in single touch only mode.
Users with a single touch firmware report not seeing the DOUBLETAP events; this
is a side effect of dropping old mapping for confidence. The confidence mapping
may be fine for singletouch mode but causes problems in multitouch mode.
Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | 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 f6f882da6267..3234c729a895 100644 --- a/drivers/hid/hid-ntrig.c +++ b/drivers/hid/hid-ntrig.c | |||
@@ -165,6 +165,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field, | |||
165 | * to emit a normal (X, Y) position | 165 | * to emit a normal (X, Y) position |
166 | */ | 166 | */ |
167 | if (!nd->reading_mt) { | 167 | if (!nd->reading_mt) { |
168 | input_report_key(input, BTN_TOOL_DOUBLETAP, | ||
169 | (nd->confidence != 0)); | ||
168 | input_event(input, EV_ABS, ABS_X, nd->x); | 170 | input_event(input, EV_ABS, ABS_X, nd->x); |
169 | input_event(input, EV_ABS, ABS_Y, nd->y); | 171 | input_event(input, EV_ABS, ABS_Y, nd->y); |
170 | } | 172 | } |