We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11fae09 commit 6e69d31Copy full SHA for 6e69d31
api_drivers/py_api_drivers/frozen/indev/pointer_framework.py
@@ -80,8 +80,13 @@ def _get_coords(self):
80
def _calc_coords(self, x, y):
81
if self.is_calibrated:
82
cal = self._cal
83
- x = int(round(x * cal.alphaX + y * cal.betaX + cal.deltaX))
84
- y = int(round(x * cal.alphaY + y * cal.betaY + cal.deltaY))
+ xt, yt = x, y # preserve raw coords
+
85
+ xs = xt * cal.alphaX + yt * cal.betaX + cal.deltaX
86
+ ys = xt * cal.alphaY + yt * cal.betaY + cal.deltaY
87
88
+ x = int(round(xs))
89
+ y = int(round(ys))
90
91
if cal.mirrorX:
92
x = self._orig_width - x - 1
0 commit comments