Skip to content

Commit

Permalink
fix right click
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 4, 2023
1 parent 44a23a2 commit 753fcf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zero_hid/Mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from .hid.mouse import relative_mouse_event, absolute_mouse_event
from typing import SupportsInt


class RelativeMoveRangeError(Exception):
pass

Expand All @@ -22,8 +21,8 @@ def left_click(self):
self.__send_mouse_event(self.dev, 0x0, 0, 0, 0, 0)

def right_click(self):
self.__send_mouse_event(self.dev, 0x1, 0, 0, 0, 0)
self.__send_mouse_event(self.dev, 0x2, 0, 0, 0, 0)
self.__send_mouse_event(self.dev, 0x0, 0, 0, 0, 0)

def __move_relative(self, x, y):
"""
Expand Down

0 comments on commit 753fcf1

Please sign in to comment.