New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invert Y tilt axis when using UCLogicTiltReportParser #1841
base: master
Are you sure you want to change the base?
Invert Y tilt axis when using UCLogicTiltReportParser #1841
Conversation
…urable params through an overloaded constructor
Thanks, that's also what I noticed with my Kamvas pro 20. I will give it a try soon. |
I modified the parser responsible for my tablet directly because it seemed to redefine itselfs the X, Y tilts : |
What are the values shown in the debugger? They should be negative for tilt to the left or up, positive for tilt to the right or down (for X and Y respectively). Two huion tablets that I had my hands on (hs610 and hs611) as well as wacom tablets report tilt correctly, so this issue is either device-specific or something is wrong with how we inject tilt on linux. In any case flipping Y axis shouldn't be the default |
Without the Y flipped, I get positive values when tilting up, so device-specific ?
Yeah, my modification was just a dirty fix for testing. |
This seems sort of sensible but I wonder if we should be fixing this another place in OTD, or with an attribute in the device configuration file. Also HS610 and HS611 does not use a tilt-compatibler parser (at the moment), though they should very likely be using the I'd like for this to have more testing, especially on the HS610/HS611 as this'll determine which course of action is best. @AbstractQbit can you confirm HS610/HS611 tilt axises are correct on |
Back at home now, seems like I was wrong. Just checked hs611 and it does have Y axis inverted, so it's possible that a lot of UClogic tablets report tilt that way. |
https://github.com/DIGImend/digimend-kernel-drivers/blob/0b445150ef491cb52174aef484f6873083770171/hid-uclogic-params.c#L472 |
Sorry for not getting back to this earlier. This needs to be rebased to the latest version of |
Rebasing worked locally without conflicts. For the huion kamvas 16 (2021) this needs to be adjusted in the I think this doesn't take into account that the input can be rotated. When I hardcoded the inversion into the |
Introduction
While testing UCLogic tilt support using Huion RTP-700 with Krita and MyPaint on Linux, I've observed that the Y tilt axis is inverted.
Description
These changes inverts the Y tilt axis when a TiltTabletReport is generated by the UCLogicTiltReportParser.
Notes