mouse buttons 4 and 5

This commit is contained in:
Devaev Maxim
2020-08-18 10:45:15 +03:00
parent 6840c514dc
commit 28cc3fe99a
11 changed files with 54 additions and 15 deletions

View File

@@ -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)),