Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff5cf34c authored by Rafi Rubin's avatar Rafi Rubin Committed by Jiri Kosina
Browse files

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: default avatarRafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent dbf2b17d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -165,6 +165,8 @@ static int ntrig_event (struct hid_device *hid, struct hid_field *field,
			 * to emit a normal (X, Y) position
			 */
			if (!nd->reading_mt) {
				input_report_key(input, BTN_TOOL_DOUBLETAP,
						 (nd->confidence != 0));
				input_event(input, EV_ABS, ABS_X, nd->x);
				input_event(input, EV_ABS, ABS_Y, nd->y);
			}