Input: wacom - set stylus_in_proximity when pen is in range
Subsystems (2)
PATCH 1/3 Input: wacom - set stylus_in_proximity when pen is in range
Signed-off-by Ping Cheng <[email protected]>
Reviewed-by Jason Gerecke <[email protected]>
Tested-by Jason Gerecke <[email protected]>
--- drivers/input/tablet/wacom_wac.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/input/tablet/wacom_wac.c +2 -0
@@ -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
Quoted 3 lines · Ping Cheng
Signed-off-by Ping Cheng <[email protected]>Reviewed-by Jason Gerecke <[email protected]>Tested-by Jason Gerecke <[email protected]>
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@@ -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