summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/rfb/__init__.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/apps/vnc/rfb/__init__.py
parent6840c514dc4b1996719787878bbf9d60b402f760 (diff)
mouse buttons 4 and 5
Diffstat (limited to 'kvmd/apps/vnc/rfb/__init__.py')
-rw-r--r--kvmd/apps/vnc/rfb/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/apps/vnc/rfb/__init__.py b/kvmd/apps/vnc/rfb/__init__.py
index f10d7da2..27aa41ad 100644
--- a/kvmd/apps/vnc/rfb/__init__.py
+++ b/kvmd/apps/vnc/rfb/__init__.py
@@ -400,6 +400,8 @@ class RfbClient(RfbClientStream): # pylint: disable=too-many-instance-attribute
"left": bool(buttons & 0x1),
"right": bool(buttons & 0x4),
"middle": bool(buttons & 0x2),
+ "up": bool(buttons & 0x8), # Back
+ "down": bool(buttons & 0x10), # Forward
},
wheel={
"x": (-4 if buttons & 0x40 else (4 if buttons & 0x20 else 0)),