summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/_mcu/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/plugins/hid/_mcu/__init__.py')
-rw-r--r--kvmd/plugins/hid/_mcu/__init__.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py
index 07aeface..4dfd978a 100644
--- a/kvmd/plugins/hid/_mcu/__init__.py
+++ b/kvmd/plugins/hid/_mcu/__init__.py
@@ -179,12 +179,21 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
if outputs1 & 0b10000000: # Dynamic
if outputs2 & 0b00000001: # USB
- keyboard_outputs["available"].extend(["usb", "disabled"])
- mouse_outputs["available"].extend(["usb", "usb_rel", "disabled"])
+ keyboard_outputs["available"].append("usb")
+ mouse_outputs["available"].extend(["usb", "usb_rel"])
+
+ if outputs2 & 0b00000100: # USB WIN98
+ mouse_outputs["available"].append("usb_win98")
if outputs2 & 0b00000010: # PS/2
- keyboard_outputs["available"].extend(["ps2", "disabled"])
- mouse_outputs["available"].extend(["ps2", "disabled"])
+ keyboard_outputs["available"].append("ps2")
+ mouse_outputs["available"].append("ps2")
+
+ if keyboard_outputs["available"]:
+ keyboard_outputs["available"].append("disabled")
+
+ if mouse_outputs["available"]:
+ mouse_outputs["available"].append("disabled")
active_keyboard = get_active_keyboard(outputs1)
if active_keyboard in keyboard_outputs["available"]: