Closed pythonmcpi closed 5 months ago
The USB HID specification (version 1.11, found here) notes in the boot interface protocol that bits 4 to 7 are "Device-specific" and specifically says that bits 0, 1, and 2 correspond to Buttons 1, 2, and 3, respectively. However, the behaviors of the forward and back buttons appear to be consistent between different mice.
The current Mouse class already supports sending the back and forward buttons (also known as mouse buttons 4 and 5) by passing in the button constants manually. The constants currently included in the library are:
This pull request adds the following constants:
Many mice include these buttons, and applications (such as browsers) support these for forward and backward navigation.
Partially resolves #94