From c58430258758db06c198b3c456449eb05eee017d Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 21 Mar 2023 08:48:32 +0200 Subject: ch9329: fixed rel mouse --- kvmd/plugins/hid/ch9329/mouse.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'kvmd/plugins') 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() -- cgit v1.2.3