Skip to content

Commit fe7f8d7

Browse files
jigpubentiss
authored andcommitted
HID: wacom: Send BTN_TOUCH in response to INTUOSP2_BT eraser contact
The Bluetooth reports from the 2nd-gen Intuos Pro have separate bits for indicating if the tip or eraser is in contact with the tablet. At the moment, only the tip contact bit controls the state of the BTN_TOUCH event. This prevents the eraser from working as expected. This commit changes the driver to send BTN_TOUCH whenever either the tip or eraser contact bit is set. Fixes: 4922cd2 ("HID: wacom: Support 2nd-gen Intuos Pro's Bluetooth classic interface") Cc: <[email protected]> # 4.11+ Signed-off-by: Jason Gerecke <[email protected]> Reviewed-by: Aaron Skomra <[email protected]> Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent e92a7be commit fe7f8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/wacom_wac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ static void wacom_intuos_pro2_bt_pen(struct wacom_wac *wacom)
13011301
range ? frame[7] : wacom->features.distance_max);
13021302
}
13031303

1304-
input_report_key(pen_input, BTN_TOUCH, frame[0] & 0x01);
1304+
input_report_key(pen_input, BTN_TOUCH, frame[0] & 0x09);
13051305
input_report_key(pen_input, BTN_STYLUS, frame[0] & 0x02);
13061306
input_report_key(pen_input, BTN_STYLUS2, frame[0] & 0x04);
13071307

0 commit comments

Comments
 (0)