diff --git a/adafruit_hid/mouse.py b/adafruit_hid/mouse.py index d31e633..c0a0e9b 100644 --- a/adafruit_hid/mouse.py +++ b/adafruit_hid/mouse.py @@ -144,9 +144,9 @@ def move(self, x=0, y=0, wheel=0): partial_x = self._limit(x) partial_y = self._limit(y) partial_wheel = self._limit(wheel) - self.report[1] = partial_x - self.report[2] = partial_y - self.report[3] = partial_wheel + self.report[1] = partial_x & 0xff + self.report[2] = partial_y & 0xff + self.report[3] = partial_wheel & 0xff self.hid_mouse.send_report(self.report) x -= partial_x y -= partial_y