Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 43340e8

Browse files
authoredFeb 4, 2024
Add constants for mouse back and forward
1 parent 7d8fbf5 commit 43340e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎adafruit_hid/mouse.py

Lines changed: 4 additions & 0 deletions
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)
Please sign in to comment.