summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-06-07 01:21:23 +0300
committerMaxim Devaev <[email protected]>2023-06-07 01:21:23 +0300
commit9c694da00c7d93cbff3aa910ffdeeb8dded691c0 (patch)
tree85965b4990c8d1f3f52ac2651f025c4e87381db9 /kvmd/apps
parent7c507810f0a2a753ea152df3ce1013588006bda4 (diff)
simplified binary expose_ws()
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/kvmd/api/hid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/kvmd/api/hid.py b/kvmd/apps/kvmd/api/hid.py
index ea59d8cf..8143deff 100644
--- a/kvmd/apps/kvmd/api/hid.py
+++ b/kvmd/apps/kvmd/api/hid.py
@@ -154,7 +154,7 @@ class HidApi:
# =====
- @exposed_ws(3, binary=True)
+ @exposed_ws(3)
async def __ws_bin_mouse_move_handler(self, _: WsSession, data: bytes) -> None:
try:
(to_x, to_y) = struct.unpack(">hh", data)
@@ -164,11 +164,11 @@ class HidApi:
return
self.__send_mouse_move_event(to_x, to_y)
- @exposed_ws(4, binary=True)
+ @exposed_ws(4)
async def __ws_bin_mouse_relative_handler(self, _: WsSession, data: bytes) -> None:
self.__process_ws_bin_delta_request(data, self.__hid.send_mouse_relative_event)
- @exposed_ws(5, binary=True)
+ @exposed_ws(5)
async def __ws_bin_mouse_wheel_handler(self, _: WsSession, data: bytes) -> None:
self.__process_ws_bin_delta_request(data, self.__hid.send_mouse_wheel_event)