]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Report ABS_TILT_{X,Y} as signed values
authorJason Gerecke <killertofu@gmail.com>
Wed, 19 Nov 2014 00:50:08 +0000 (16:50 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 21 Nov 2014 21:39:37 +0000 (22:39 +0100)
commit9f16c039de1617efeac57cec859fe2380be93e72
tree317fc564fb37fc22e71c984e3c9fabfb35eaa5a5
parentfb506107144ffa3852dc08fa5eff2441ac4d095e
HID: wacom: Report ABS_TILT_{X,Y} as signed values

Centers the ABS_TILT_{X,Y} axes so that a value of zero is reported when
the pen is vertical. Combined with resolution information in the next
patch, this makes it possible for userspace to calculate the pen angle
without needing hardware-specific knowledge. The xf86-input-wacom driver
was updated to support signed tilt values in late-2012 (2f2acec).

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c