summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/otg/mouse.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-08-18 10:45:15 +0300
committerDevaev Maxim <[email protected]>2020-08-18 10:45:15 +0300
commit28cc3fe99a3e90213f1f01286b5ec55f4f06224c (patch)
treebe3751fb65bc53f2bcf9158e155eebe27208abe6 /kvmd/plugins/hid/otg/mouse.py
parent6840c514dc4b1996719787878bbf9d60b402f760 (diff)
mouse buttons 4 and 5
Diffstat (limited to 'kvmd/plugins/hid/otg/mouse.py')
-rw-r--r--kvmd/plugins/hid/otg/mouse.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/plugins/hid/otg/mouse.py b/kvmd/plugins/hid/otg/mouse.py
index 3c41eb40..adb2469f 100644
--- a/kvmd/plugins/hid/otg/mouse.py
+++ b/kvmd/plugins/hid/otg/mouse.py
@@ -91,6 +91,8 @@ class MouseProcess(BaseDeviceProcess):
"left": 0x1,
"right": 0x2,
"middle": 0x4,
+ "up": 0x8, # Back
+ "down": 0x10, # Forward
}[button]
self._queue_event(_ButtonEvent(code, state))