Input: wacom - report correct touch contact size for I5/Bamboo
authorJason Gerecke <killertofu@gmail.com>
Thu, 4 Oct 2012 00:19:11 +0000 (17:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Oct 2012 06:58:15 +0000 (23:58 -0700)
commit4e90495498cc6f1aa15e7667a695908860938b3e
treebe5df2824e3bff577e4d56b368f6c070e040d891
parent7774036808011ceecc88cef01dfafcce39ed9fc5
Input: wacom - report correct touch contact size for I5/Bamboo

This changes how the touch packets for Intuos5 and 3rd-gen Bamboo
are interpreted, so that proper values for the MAJOR and MINOR
axes are reported. Instead of using the amplitude field (data[6]),
we use the size field (data[5]) and do some calculation to
transform it from a scaled-down area into axis lengths.

Note that even though we assume a circular contact, both MAJOR and
MINOR are reported since the resolution of the X and Y axes differ.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/wacom_wac.c
This page took 0.039729 seconds and 5 git commands to generate.