client-side for mouse

This commit is contained in:
Devaev Maxim
2018-07-13 05:04:10 +00:00
parent fc434cfc74
commit 698339d77e
2 changed files with 67 additions and 9 deletions

View File

@@ -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}))