Skip to content

Commit

Permalink
remove absolute argument
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 4, 2023
1 parent a5131d3 commit 44a23a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zero_hid/Mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ def __move_relative(self, x, y):
raise RelativeMoveRangeError(f"Value of x: {x} out of range (-127 - 127)")
if not -127 <= y <= 127:
RelativeMoveRangeError(f"Value of y: {y} out of range (-127 - 127)")
self.__send_mouse_event(self.dev, 0x0, x, y, 0, 0, absolute=False)
self.__send_mouse_event(self.dev, 0x0, x, y, 0, 0)

def __move_absolute(self, x, y):
if not 0 <= x <= 65535:
raise RelativeMoveRangeError(f"Value of x: {x} out of range (0 - 65535)")
if not 0 <= y <= 65535:
RelativeMoveRangeError(f"Value of y: {y} out of range (0 - 65535)")
self.__send_mouse_event(self.dev, 0x0, x, y, 0, 0, absolute=True)
self.__send_mouse_event(self.dev, 0x0, x, y, 0, 0)


def __enter__(self):
Expand Down

0 comments on commit 44a23a2

Please sign in to comment.