diff options
author | Ping Cheng <pingc@wacom.com> | 2009-06-02 16:59:58 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-06-03 07:37:36 -0700 |
commit | a86295283063ce23fbefad494c71290caf8eae25 (patch) | |
tree | 9a4f806abde6b012f48b1123e44d533154692e01 /drivers/input/tablet | |
parent | cbf806dd9302f3ff27ba496dae474b9da6b58873 (diff) | |
download | op-kernel-dev-a86295283063ce23fbefad494c71290caf8eae25.zip op-kernel-dev-a86295283063ce23fbefad494c71290caf8eae25.tar.gz |
Input: wacom - clear Intuos4 wheel data when finger leaves proximity
Signed-off-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r-- | drivers/input/tablet/wacom_wac.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 2ff8990..38bf863 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -455,6 +455,9 @@ static int wacom_intuos_irq(struct wacom_wac *wacom, void *wcombo) wacom_report_key(wcombo, BTN_6, (data[3] & 0x20)); if (data[1] & 0x80) { wacom_report_abs(wcombo, ABS_WHEEL, (data[1] & 0x7f)); + } else { + /* Out of proximity, clear wheel value. */ + wacom_report_abs(wcombo, ABS_WHEEL, 0); } if (wacom->features->type != INTUOS4S) { wacom_report_key(wcombo, BTN_7, (data[3] & 0x40)); |