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 <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-08-14 09:29:36 +10:00
parent bd6278a305
commit 85f2e3c67a
1 changed files with 7 additions and 7 deletions

View File

@ -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]