mirror touch axes
Closed this issue · 3 comments
Synec5 commented
Hello,
I can mirror touch axes in the file xpt2046.py
With kind regards
rdagger commented
If I understand correctly, you're asking about mirroring touch coordinates. If that's the case, one possible solution could be subtracting the X coordinate from the width and the Y coordinate from the height.
Synec5 commented
Yes that works. I would like to define it in the driver file or adapt it to the appropriate location/variables.
rdagger commented
xpt2046.py has both self.width and self.height so you just need to make the adjustment prior to the x,y values being returned in get_touch() and/or int_press().