mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-04-30 18:06:35 +08:00
client-side for mouse
This commit is contained in:
@@ -145,6 +145,9 @@ class Server: # pylint: disable=too-many-instance-attributes
|
||||
if key and state in [True, False]:
|
||||
await self.__hid.send_key_event(key, state)
|
||||
continue
|
||||
elif event.get("event_type") in ["mouse_move", "mouse_button"]:
|
||||
pass
|
||||
# logger.info("Mouse event: %s", event) # TODO
|
||||
else:
|
||||
logger.error("Invalid websocket event: %r", event)
|
||||
await ws.send_str(json.dumps({"msg_type": "echo", "msg": msg.data}))
|
||||
|
||||
Reference in New Issue
Block a user