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)
commitec5fc1c1bdf0c445d2669ca9e1dbb69c9725856a
tree317fc564fb37fc22e71c984e3c9fabfb35eaa5a5
parent30ebc1aea8ce02da5b3789eba775dd2d79837813
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