Tilt correction for huion #79
retrotails
started this conversation in
General
Replies: 2 comments
-
Wow! Super interesting. The first issue looks like the tilt values may be inverted. The second one is plain weird. I'd be interested in seeing what the raw USB messages being produced looks like. There is some commented out code in the huion driver that dumps the messages in the terminal if you were also curious to know. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think the tablet does tilt correction on it's own in firmware, before sending it over USB, so my code is more of a workaround for a hardware bug. huion_usb.mp4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Kamvas Pro 16 (which otherwise works great with this driver, including the buttons and touch slider), likely near-identical to the 13" version. Firmware shows up as "HUION_M183_190521".
I noticed two issues related to the cursor position when tilting the pen, which led me to find this driver, and it has the same problems as the other options I've tried.
Issue 1 is, the cursor strays from the pen tip when it's tilted toward ordinal directions, while cardinal directions are fine.
I believe this is because when the pen is pointed at a corner, the tilt axes are both maxed out, which leads to a square shape, and the tablet firmware doesn't properly correct this into a circle.
huion_1.mp4
Issue 2 is weird, it seems like the tablet just completely stops updating the tilt correction as soon as it starts a stroke, and doesn't resume until you lift it.
This means when you start a line, then change the pen tilt during the stroke, the cursor goes completely away from the pen tip. As soon as you lift the pen, the cursor snaps back to the correct position.
huion_2.mp4
I made some simple tweaks that seem to fix it 90% for my tablet; the only issue I've noticed is the very tail of a stroke can snap to the wrong position making a spike, might be an easy fix.
I'm posting here because I don't know how widespread this problem is. Maybe it only affects some tablets, maybe there's a firmware update that fixes it, I don't know. Reviews online seem to indicate the Windows drivers don't have the issue. If anyone else has a Huion screen tablet, it'd be helpful to know if this is an issue.
Beta Was this translation helpful? Give feedback.
All reactions