From 43340e8f91c8dd96f009b9d366e83c3fd32b22f5 Mon Sep 17 00:00:00 2001 From: Pipythonmc <47196755+pythonmcpi@users.noreply.github.com> Date: Sun, 4 Feb 2024 13:32:41 -0800 Subject: [PATCH] Add constants for mouse back and forward --- adafruit_hid/mouse.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adafruit_hid/mouse.py b/adafruit_hid/mouse.py index 014b778..9aaa54c 100644 --- a/adafruit_hid/mouse.py +++ b/adafruit_hid/mouse.py @@ -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.