Skip to content

Commit ff5cf34

Browse files
rafiyrJiri Kosina
authored andcommitted
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>
1 parent dbf2b17 commit ff5cf34

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/hid/hid-ntrig.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field,
165165
* to emit a normal (X, Y) position
166166
*/
167167
if (!nd->reading_mt) {
168+
input_report_key(input, BTN_TOOL_DOUBLETAP,
169+
(nd->confidence != 0));
168170
input_event(input, EV_ABS, ABS_X, nd->x);
169171
input_event(input, EV_ABS, ABS_Y, nd->y);
170172
}

0 commit comments

Comments
 (0)