Skip to content

Commit 01610da

Browse files
authored
Merge pull request #124 from pythonmcpi/patch-1
Add constants for mouse back and forward
2 parents 7d8fbf5 + 43340e8 commit 01610da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_hid/mouse.py

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class Mouse:
2626
"""Right mouse button."""
2727
MIDDLE_BUTTON = 4
2828
"""Middle mouse button."""
29+
BACK_BUTTON = 8
30+
"""Back mouse button."""
31+
FORWARD_BUTTON = 16
32+
"""Forward mouse button."""
2933

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

0 commit comments

Comments
 (0)