summaryrefslogtreecommitdiff
path: root/src/events.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2024-11-06 08:37:12 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2024-11-06 08:37:12 +1300
commitf6c37877fae76d7840367a0a766d92fbef9fdb5d (patch)
tree74cdad056a8d64316b9186b0ba4f1c326e57a732 /src/events.rs
parentf69c4065488f792a51641a126ba58ec541819f22 (diff)
downloadphosphor-f6c37877fae76d7840367a0a766d92fbef9fdb5d.zip
Add support for 'back' and 'forward' mouse buttons
MouseButton events will now also trigger when the 'back' and 'forward' mouse buttons are pressed. These buttons aren't present on all mice.
Diffstat (limited to 'src/events.rs')
-rw-r--r--src/events.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/events.rs b/src/events.rs
index 7729a63..22cada5 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -77,6 +77,8 @@ pub enum MouseButton {
Left,
Middle,
Right,
+ Back,
+ Forward,
}