summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/_mcu/proto.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/_mcu/proto.py')
-rw-r--r--kvmd/plugins/hid/_mcu/proto.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/kvmd/plugins/hid/_mcu/proto.py b/kvmd/plugins/hid/_mcu/proto.py
index 7cfc3fd7..a0f83528 100644
--- a/kvmd/plugins/hid/_mcu/proto.py
+++ b/kvmd/plugins/hid/_mcu/proto.py
@@ -83,6 +83,15 @@ class SetMouseOutputEvent(BaseEvent):
# =====
[email protected](frozen=True)
+class SetConnectedEvent(BaseEvent):
+ connected: bool
+
+ def make_request(self) -> bytes:
+ return _make_request(struct.pack(">BBxxx", 0x05, int(self.connected)))
+
+
+# =====
class ClearEvent(BaseEvent):
def make_request(self) -> bytes:
return _make_request(b"\x10\x00\x00\x00\x00")