diff options
| author | Ping Cheng <pinglinux@gmail.com> | 2014-05-29 03:08:20 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-29 03:09:16 -0400 |
| commit | 805a876af7261cbe11498ae544add0bc8ad74192 (patch) | |
| tree | 1335f3b6228bb16fa832e7e756e593aa62beb924 | |
| parent | 50525891f80169f6730fad9f1e6a69440eb858b9 (diff) | |
Input: wacom - set stylus_in_proximity when pen is in range
Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Tested-by: Jason Gerecke <killertofu@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
| -rw-r--r-- | drivers/input/tablet/wacom_wac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 24c0733cf7e5..c98e51c5591f 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c | |||
| @@ -484,6 +484,8 @@ static int wacom_intuos_inout(struct wacom_wac *wacom) | |||
| 484 | input_report_key(input, BTN_TOUCH, 0); | 484 | input_report_key(input, BTN_TOUCH, 0); |
| 485 | input_report_abs(input, ABS_PRESSURE, 0); | 485 | input_report_abs(input, ABS_PRESSURE, 0); |
| 486 | input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max); | 486 | input_report_abs(input, ABS_DISTANCE, wacom->features.distance_max); |
| 487 | if (features->quirks & WACOM_QUIRK_MULTI_INPUT) | ||
| 488 | wacom->shared->stylus_in_proximity = true; | ||
| 487 | } | 489 | } |
| 488 | 490 | ||
| 489 | /* Exit report */ | 491 | /* Exit report */ |
