>>
|
2563d4.jpg
Cherry Milk
2563d4
More debugging spew for those with troublesome tablets. While the stylus is in range (the mouse has not changed), you'll get a couple of debug lines at the top which are, in order:
cursor number (should normally be 1, eraser may be 2); window-relative X and Y co-ordinates (these are what I'm computing to draw the lines---unless you've resized, they should therefore be 0,0 top-left to 639,479 bottom-right within the bounds of the window); percentage pressure; and button information (likely 1 for tip, 2 for side); and if the press is believed to be an eraser (technically checking to see if Wintab says the stylus is "inverted").
On the second line is the RAW X and Y co-ordinates I'm getting from Wintab, which are screen-relative and upside-down. These should go from 0,0 on the bottom-left of your desktop to your screen resolution at the top-right.
(The mapping between these is partially flipping the Y co-ordinate based on the size of the area Wintab tells me it covers, and mostly asking Windows itself to convert screen-relative co-ordinates to window-relative ones.)
And unfortunately I can confirm that it doesn't keep up with display rotation, because the Wintab context keeps on mapping things to the old resolution. Must be a change event to listen to somewhere.
|