From d2c6cc001ccd61faaa25f74690f459aecc37e172 Mon Sep 17 00:00:00 2001 From: mattie20 <45700495+mattie20@users.noreply.github.com> Date: Thu, 16 May 2024 20:41:47 -0400 Subject: [PATCH] Improve Huion Inspiroy 2 m support (#699) --- data/huion-inspiroy-2-m---h951p.tablet | 60 ++- data/layouts/huion-inspiroy-2-m---h951p.svg | 414 ++++++++------------ 2 files changed, 220 insertions(+), 254 deletions(-) diff --git a/data/huion-inspiroy-2-m---h951p.tablet b/data/huion-inspiroy-2-m---h951p.tablet index a8e7833b..8b7af877 100644 --- a/data/huion-inspiroy-2-m---h951p.tablet +++ b/data/huion-inspiroy-2-m---h951p.tablet @@ -1,29 +1,61 @@ # This tablet description file has been generated using an automated tool: -# https://github.com/JoseExposito/uclogic-libwacom-tablet-descriptions -# If you own this tablet, please improve it. +# Huion +# Inspiroy 2 M +# H951P +# +# sysinfo.nLrNAqLFy1.tar.gz +# https://github.com/linuxwacom/wacom-hid-descriptors/issues/383 +# +# +# Button Map: +# (A=1, B=2, C=3, ...) +# +# *-----------------------* +# | | +# A D | | +# B E | | +# C F | | +# G | | +# | TABLET | +# H | | +# I | | +# J | | +# K | | +# | | +# *-----------------------* +# +# +# Dial Map: +# (A=1, B=2, C=3, ...) +# +# *-----------------------* +# | | +# | | +# A | TABLET | +# | | +# | | +# *-----------------------* # -# sysinfo missing - if you own this device please provide it. See this link -# for details: https://github.com/linuxwacom/libwacom/wiki/Adding-a-new-device [Device] -Name=Inspiroy 2 M - H951P -ModelName=Inspiroy 2 M - H951P +Name=Huion Inspiroy 2 M +ModelName=H951P Class=Bamboo -DeviceMatch=usb|256c|0067||HUION_T21k -Width=9 # autogenerated value, please fix -Height=6 # autogenerated value, please fix +DeviceMatch=usb|256c|0067; +Width=9 +Height=6 # Technically rounds down to 5, but 6 seems more natural +IntegratedIn= Layout=huion-inspiroy-2-m---h951p.svg Styli=@generic-no-eraser; -IntegratedIn= [Features] -NumStrips=0 -NumRings=0 -NumDials=1 -Reversible=true Stylus=true +Reversible=true Touch=false TouchSwitch=false +NumRings=0 +NumDials=1 +NumStrips=0 [Buttons] Left=A;B;C;D;E;F;G;H;I;J;K diff --git a/data/layouts/huion-inspiroy-2-m---h951p.svg b/data/layouts/huion-inspiroy-2-m---h951p.svg index 9bd8eee9..bfe99db3 100644 --- a/data/layouts/huion-inspiroy-2-m---h951p.svg +++ b/data/layouts/huion-inspiroy-2-m---h951p.svg @@ -1,329 +1,263 @@ - + + - - + width="720.0" + height="424.0" + style="color:#000000;stroke:#7f7f7f;fill:none;stroke-width:.25;font-size:8" + version="1.1" + xmlns="http://www.w3.org/2000/svg"> Inspiroy 2 M - H951P - - + + + class="A ModeSwitch Button" + cx="22.0" + cy="40.5" + r="10.5" /> + A - - - + + class="B ModeSwitch Button" + cx="22.0" + cy="80.5" + r="10.5" /> + B - - - + + class="C ModeSwitch Button" + cx="22.0" + cy="120.5" + r="10.5" /> + C - - + + x="46.0" + y="28.0" + width="38.0" + height="24.5" + rx="4.0" /> + D - - + + x="46.0" + y="68.0" + width="38.0" + height="24.5" + rx="4.0" /> + E - - + + x="46.0" + y="108.0" + width="38.0" + height="24.5" + rx="4.0" /> + F - - + + x="46.0" + y="148.0" + width="38.0" + height="24.5" + rx="4.0" /> + G + + + + id="LeaderDialCCW" + class="DialCCW Dial Leader" + d="M 65.0 196.0 V 190.0 H 106.0" /> + + Up + Down - + + x="46.0" + y="250.0" + width="38.0" + height="24.5" + rx="4.0" /> + H - - + + x="46.0" + y="289.0" + width="38.0" + height="24.5" + rx="4.0" /> + I - - + + x="46.0" + y="329.0" + width="38.0" + height="24.5" + rx="4.0" /> + J - - + + x="46.0" + y="369.0" + width="38.0" + height="24.5" + rx="4.0" /> + K - - - - - - - - - Up - Down -