From 07dba6c89296243074c4fbd2576d9243152adad1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 21 Aug 2019 09:11:19 +1000 Subject: [PATCH] wacom: store the default orientation for each tablet Not actually used at this point, but this way we have default width/height/orientation etc. all in one place. Signed-off-by: Peter Hutterer --- tuhi/wacom.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tuhi/wacom.py b/tuhi/wacom.py index 37ee1c2..cbd23e5 100644 --- a/tuhi/wacom.py +++ b/tuhi/wacom.py @@ -936,6 +936,8 @@ class WacomProtocolSpark(WacomProtocolBase): packet_handlers = [WacomPacketHandlerEndOfStroke, WacomPacketHandlerEndOfSequence] + orientation = 'portrait' + def __init__(self, device, uuid, protocol_version=ProtocolVersion.SPARK): assert(protocol_version >= ProtocolVersion.SPARK) super().__init__(device, uuid, protocol_version=protocol_version) @@ -961,6 +963,8 @@ class WacomProtocolSlate(WacomProtocolSpark): protocol = ProtocolVersion.SLATE packet_handlers = [WacomPacketHandlerStrokePrefixSlate] + orientation = 'portrait' + def __init__(self, device, uuid, protocol_version=ProtocolVersion.SLATE): assert(protocol_version >= ProtocolVersion.SLATE) super().__init__(device, uuid, protocol_version=protocol_version) @@ -1044,6 +1048,8 @@ class WacomProtocolIntuosPro(WacomProtocolSlate): WacomPacketHandlerStrokeTimestampIntuosPro, WacomPacketHandlerUnknownFixedStrokeDataIntuosPro] + orientation = 'landscape' + def __init__(self, device, uuid, protocol_version=ProtocolVersion.INTUOS_PRO): assert(protocol_version >= ProtocolVersion.INTUOS_PRO) super().__init__(device, uuid, protocol_version=protocol_version)