diff options
author | Maxim Devaev <[email protected]> | 2021-08-15 17:34:42 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-08-15 20:16:48 +0300 |
commit | df098bd075e26fb6ecc75b2f7be5923371741677 (patch) | |
tree | 663a4e6a4808ed267e985c5b5d3d18bc4cf1f915 /kvmd/plugins/hid/_mcu/__init__.py | |
parent | 9afa6efbe4b8ee3186c5d840233c96115363460f (diff) |
win95 runtime switching
Diffstat (limited to 'kvmd/plugins/hid/_mcu/__init__.py')
-rw-r--r-- | kvmd/plugins/hid/_mcu/__init__.py | 17 |
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"]: |