From 85f2e3c67a690ec7795ac9e37c2e9c839f740638 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 14 Aug 2019 09:29:36 +1000 Subject: [PATCH] wacom: fix the dimensions for the Spark The reachable range is 2100x14800, highest pressure is 1023. Unlike the slate the paper block still affords to address almost the whole range even though the paper is slightly narrower than the range - but it can slide left/right by about 5mm. Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index bb428e3..f41999a 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -928,15 +928,15 @@ class WacomProtocolSpark(WacomProtocolBase): :param device: the BlueZDevice object that is this wacom device :param uuid: the UUID {to be} assigned to the device ''' - width = 21600 - x_min = 2500 - x_max = 20600 + width = 21000 # physical: 210mm + x_min = 2100 + x_max = 21000 - height = 14800 - y_min = 800 - y_max = 14300 + height = 14800 # physical: 148mm + y_min = 0 + y_max = 14800 - pressure = 2047 + pressure = 1023 protocol = ProtocolVersion.SPARK packet_handlers = [WacomPacketHandlerEndOfStroke, WacomPacketHandlerEndOfSequence]