summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-03-21 08:48:32 +0200
committerMaxim Devaev <[email protected]>2023-07-10 03:02:28 +0300
commitc58430258758db06c198b3c456449eb05eee017d (patch)
treee5f3ad71069a759c4937f43cec76d1df4c29d99b /kvmd
parentddfe21d2b06f840d15387b5f1c896951fd099070 (diff)
ch9329: fixed rel mouse
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/plugins/hid/ch9329/mouse.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/plugins/hid/ch9329/mouse.py b/kvmd/plugins/hid/ch9329/mouse.py
index 918bd270..83c4eef3 100644
--- a/kvmd/plugins/hid/ch9329/mouse.py
+++ b/kvmd/plugins/hid/ch9329/mouse.py
@@ -58,6 +58,9 @@ class Mouse: # pylint: disable=too-many-instance-attributes
self.__buttons |= code
else:
self.__buttons &= ~code
+ if not self.__absolute:
+ self.__to_x = (0, 0)
+ self.__to_y = (0, 0)
self.__wheel_y = 0
return self.__make_absolute_cmd()