def on_cursor_pos(self, mx, my):
        if self.exclusive and not self.window.exclusive:
            return
        if self.discard:
            self.mx = mx
            self.my = my
            self.discard = False
            return
        m = self.sensitivity / 1000.0
        self.rx += (mx - self.mx) * m
        if self.invert:
            self.ry += (my - self.my) * m
        else:
            self.ry -= (self.my - my) * m
        if self.rx < 0:
            self.rx += 2 * pi
        if self.rx >= 2 * pi:
            self.rx -= 2 * pi
        self.ry = max(self.ry, -pi / 2)
        self.ry = min(self.ry, pi / 2)
        self.mx = mx
        self.my = my
dataset/ETHPy150Open fogleman/pg/pg/wasd.py/WASD.on_cursor_pos/swapped operands of `-`