Follow-up Comment #13, bug #21735 (project mypaint):
So, we digressed a bit but I think a good summary would be that the kernel
folks limit the drivers to 60 degrees of movement, and GTK gives its apps the
percentage-of-60 degrees, which requires a slightly different formula to
calculate tilt versus the way QT apps derive tilt. As Martin noticed, the
problem is amplified as the pen is tilted further from vertical, so most of
the time it is not noticable.
So basically in GTK, where xtilt and ytilt are supplied as percentages-of-60
(-1 thru 1):
const float rad = hypot(xtilt, ytilt);
tilt_declination = 90-(rad*60);
Will correctly calcuate the tilt regardless of azimuth/bearing.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21735>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs