<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 21, 2015 at 1:24 PM, Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Dec 21, 2015 at 10:12:24AM -0800, Bill Spitzak wrote:<br>
> I find it hard to believe this is what client programs will want. A<br>
> painting program wants the axis of an elongated brush to be perpendicular<br>
> to the tilt will work correctly only if *both* axes are flipped (as your<br>
> code appears to be doing). But it will get "which edge is nearer" backward<br>
> if it wants to draw something asymmetric in the direction the pen is<br>
> tilted. And it also seems to make little sense to flip the vertical tilt<br>
> for a left-handed user.<br>
><br>
> Or are you perhaps undoing some flip that the tablet is doing internally?<br>
<br>
</span>a tablet in left-handed mode is effectively rotated by 180 degrees to bring<br>
the set of buttons towards the side of the nondominant hand. this inverts x<br>
and y, if we don't also invert tilt the client program will think that the<br>
pen is tilted in the opposite direction.<br>
<br>
symmetrical tablets don't have a left-handed mode.<br>
<br></blockquote><div>That makes sense. I assume the condition that triggers this is exactly the same as the one that triggers the x and y axis to be inverted, right?<br><br></div><div>You might also need to check whether z-axis rotation is correct (ie is the zero in the right direction).<br> <br></div></div><br></div></div>