linuxwacom / libwacom

libwacom is a tablet description library
Other
325 stars 161 forks source link

Huion H320M #672

Open cheshirecatt opened 4 months ago

cheshirecatt commented 4 months ago

The tablet works very well, I just can't map the buttons since it is not recognized by libwacom.

whot commented 4 months ago

659 should have the description for your tablet, can you give that a try please?

cheshirecatt commented 4 months ago

659 should have the description for your tablet, can you give that a try please?

Well I have a couple of doubts, the working area of the tablet is 9x5.63 inches but looking at other .tablet files I see that only whole numbers are used, I don't know if it is ok to round it as 6 in the height or on the contrary it is better to use 5.

Width=9
Height=6

And well the other thing is that I don't know the codes of the buttons so I will leave them as they are in the file.

Update: I tested with evtest and the codes are correct.


[Buttons]
Left=A;B;C;D;E;F;G;H;I;J;K
EvdevCodes=BTN_0;BTN_1;BTN_2;BTN_3;BTN_4;BTN_5;BTN_6;BTN_7;BTN_8;BTN_9;BTN_SOUTH

I hope this helps and an apology in advance.

[Device]
Name=INSPIROY Ink H320M
ModelName=H320M
Class=Bamboo
DeviceMatch=usb|256c|006d
Width=9
Height=6
Layout=
Styli=@generic-no-eraser;
IntegratedIn=

[Features]
NumStrips=0
Reversible=true
Ring=false
Stylus=true
Touch=false
TouchSwitch=false

[Buttons]
Left=A;B;C;D;E;F;G;H;I;J;K
EvdevCodes=BTN_0;BTN_1;BTN_2;BTN_3;BTN_4;BTN_5;BTN_6;BTN_7;BTN_8;BTN_9;BTN_SOUTH

I also tried to make the tablet layout

huion-h320m

whot commented 4 months ago

Well I have a couple of doubts,

that's actually "good" because the ones in #659 are autogenerated so if you spot any errors it means we know the file was properly reviewed :)

Can you file a PR with your corrected tablet file and the svg please? We can remove it from #659 then.

cheshirecatt commented 3 months ago

Well I have a couple of doubts,

that's actually "good" because the ones in #659 are autogenerated so if you spot any errors it means we know the file was properly reviewed :)

Can you file a PR with your corrected tablet file and the svg please? We can remove it from #659 then.

All right, I just correct the svg file and do the PR.

whot commented 3 months ago

ftr, #659 has been merged now so if you get to do this one please base it top of the current master branch, thanks