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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
e420b04fda
commit
07dba6c892
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue