Skip to content

Commit

Permalink
Merge pull request #124 from pythonmcpi/patch-1
Browse files Browse the repository at this point in the history
Add constants for mouse back and forward
  • Loading branch information
tannewt authored Feb 5, 2024
2 parents 7d8fbf5 + 43340e8 commit 01610da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adafruit_hid/mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class Mouse:
"""Right mouse button."""
MIDDLE_BUTTON = 4
"""Middle mouse button."""
BACK_BUTTON = 8
"""Back mouse button."""
FORWARD_BUTTON = 16
"""Forward mouse button."""

def __init__(self, devices: Sequence[usb_hid.Device], timeout: int = None) -> None:
"""Create a Mouse object that will send USB mouse HID reports.
Expand Down

0 comments on commit 01610da

Please sign in to comment.