Comment 59 for bug 799202

Revision history for this message
Jean-Baptiste Mardelle (jb-kdenlive) wrote :

Good news! I was able to make my 2 wacom devices (touchscreen and Intuos2) work correctly in Krita using the attached patch against Qt. Chase Douglas was right about Qt incorrectly using the recieved events because not all axis are sent. I simply updated Jussi's patches like that:

Instead of just checking the upper limit of the axis index:

if (xIndex < maxIndex)

I check both upper and lower limits:

if (xIndex >= firstAxis && xIndex < maxIndex)

If the index of the axis is inside the range, we use the value, otherwise we put the last recieved value.