Skip to contentSkip to conversation

Input: wacom - set stylus_in_proximity when pen is in range

PATCH Applied Ping Cheng 2 participants 2 messages May 27, 2014 – May 29, 2014

Subsystems (2)
lore
Share & tools
lore

Ping Cheng

author
#0 lore raw

PATCH 1/3 Input: wacom - set stylus_in_proximity when pen is in range

---
 drivers/input/tablet/wacom_wac.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/input/tablet/wacom_wac.c +2 -0
index 24c0733..c98e51c 100644
@@ -484,6 +484,8 @@ static int wacom_intuos_inout(struct wacom_wac *wacom)
 		input_report_key(input, BTN_TOUCH, 0);
 		input_report_abs(input, ABS_PRESSURE, 0);
 		input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max);
+		if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
+			wacom->shared->stylus_in_proximity = true;
 	}
 
 	/* Exit report */
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Ping Cheng

Applied, thank you.

Quoted 20 lines
---
 drivers/input/tablet/wacom_wac.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/input/tablet/wacom_wac.c +2 -0
index 24c0733..c98e51c 100644
@@ -484,6 +484,8 @@ static int wacom_intuos_inout(struct wacom_wac *wacom)
 		input_report_key(input, BTN_TOUCH, 0);
 		input_report_abs(input, ABS_PRESSURE, 0);
 		input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max);
+		if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
+			wacom->shared->stylus_in_proximity = true;
 	}
 
 	/* Exit report */
Signature · 1 line
1.9.1
Signature · 1 line
Dmitry