diff options
author | Devaev Maxim <[email protected]> | 2018-07-13 07:33:50 +0000 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-07-13 07:33:56 +0000 |
commit | 9c5a8d122c563bbe1f8c6593a5c5176a24cba8e2 (patch) | |
tree | 5526e8e35d66c7c1d84512627155cfcbedda1c72 /kvmd | |
parent | f83b4f674aa5c2d9e357e1bad8a5401021b56f9d (diff) |
changed hid protocol, added mouse support for hid
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/kvmd/hid.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/kvmd/hid.py b/kvmd/kvmd/hid.py index 93f74ba5..33676999 100644 --- a/kvmd/kvmd/hid.py +++ b/kvmd/kvmd/hid.py @@ -116,10 +116,10 @@ class Hid(multiprocessing.Process): assert len(key_bytes) == 1, (event, key_bytes) tty.write( b"\01" - + (b"\01" if event.state else b"\00") + key_bytes - + b"\00" + + (b"\01" if event.state else b"\00") + + b"\00\00" ) def __send_clear_hid(self, tty: serial.Serial) -> None: - tty.write(b"\00\00\00\00") + tty.write(b"\00\00\00\00\00") |