diff options
author | Maxim Devaev <[email protected]> | 2023-03-21 08:48:32 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-07-10 03:02:28 +0300 |
commit | c58430258758db06c198b3c456449eb05eee017d (patch) | |
tree | e5f3ad71069a759c4937f43cec76d1df4c29d99b /kvmd | |
parent | ddfe21d2b06f840d15387b5f1c896951fd099070 (diff) |
ch9329: fixed rel mouse
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/hid/ch9329/mouse.py | 3 |
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() |