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
Pen tilt y is being replaced with tilt x since 0.36 #11
Comments
Just a quick follow-up - I've rebuilt 0.36 with the change illustrated above and, after a reboot, seem to be getting correct Brushes in krita are behaving well too. |
Ouch, good find. Looks like I authored the offending commit (527fa95) and was bit by the classic last-line effect... Would you mind providing a copy of your fix? You can either send a git patch directly to the linuxwacom-devel mailinglist, attach a git patch to this bug, or make a pull request with the fix. In any case, please be sure to include the following three lines at the end of your commit message for tracking purposes:
|
^ Sorry for the noise, github's commit message link formatting surprised me a few times. |
Refactoring in (527fa95) introduced a typo in wcmFilterCoord which resulted in the value of tilt x being assigned to tilt y. Ref: #11 Fixes: 527fa95 ("Refactor coordinate averaging to seperate function") Signed-off-by: Daniel Ferguson <danielferguson@me.com> Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Fix has been included with the 0.36.1 release. |
xf86-input-wacom
: 0.36OS: Arch linux
Tablet: Intuos 5 PTH-650/K
I noticed issues with tilt direction being broken in Krita and did some digging...
Is my tablet broken?
Probably not, I plugged the tablet into my laptop running an older version of
xf86-input-wacom
(0.35.x) and tilt works fine.Where is the issue occurring
I took a dig into events being emitted by the kernel driver for my wacom pen with:
ABS_TILT_X
andABS_TILT_Y
events are being emitted separately, with values corresponding to the angle I'm holding the pen.On the other hand, looking at xorg events with:
Gave me rows like:
Where
a[3]
anda[4]
are always equal, and respond to changes in x tilt. Looking at the source for this project indicates they represent x and y tilt, respectively.I took a dig through source changes which have occurred since
xf86-input-wacom
0.35 and spotted this line, which looks like it'd explain the issue I'm seeing: https://github.com/linuxwacom/xf86-input-wacom/blob/master/src/wcmFilter.c#L317It appears there's a typo here,
tiltx
is being averaged, then being assigned totilty
- I think the line should read:Let me know if there's anything I can do to help with this, and thank you for your efforts maintaining this great project 👍
edit: added a little more info to line of source code
The text was updated successfully, but these errors were encountered: