summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/_mcu
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/_mcu')
-rw-r--r--kvmd/plugins/hid/_mcu/__init__.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py
index 3f925cd8..48ba8fde 100644
--- a/kvmd/plugins/hid/_mcu/__init__.py
+++ b/kvmd/plugins/hid/_mcu/__init__.py
@@ -236,7 +236,10 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
"num": state["num"],
},
},
- "mouse": {"online": state["online"]},
+ "mouse": {
+ "online": state["online"],
+ "absolute": True,
+ },
}
async def poll_state(self) -> AsyncGenerator[Dict, None]:
@@ -283,6 +286,10 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
def send_mouse_move_event(self, to_x: int, to_y: int) -> None:
self.__queue_event(_MouseMoveEvent(to_x, to_y))
+ def send_mouse_relative_event(self, delta_x: int, delta_y: int) -> None:
+ _ = delta_x # No relative events yet
+ _ = delta_y
+
def send_mouse_wheel_event(self, delta_x: int, delta_y: int) -> None:
self.__queue_event(_MouseWheelEvent(delta_x, delta_y))