diff options
author | Devaev Maxim <[email protected]> | 2020-11-20 19:12:41 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-20 19:12:41 +0300 |
commit | 3ffbc7554a33f40640aa06dad9bb3803d69757e7 (patch) | |
tree | e6f7ef92492066aa940de786124d81dccf93c61a /kvmd/validators | |
parent | 6490c8835c53e0fcb9aa8e86f138a64cb8b3e3a1 (diff) |
outputs api
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/kvm.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index 6ae92fa4..1122c233 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -83,6 +83,14 @@ def valid_stream_resolution(arg: Any) -> str: # ===== +def valid_hid_keyboard_output(arg: Any) -> str: + return check_string_in_list(arg, "Keyboard output", ["usb", "ps2", ""]) + + +def valid_hid_mouse_output(arg: Any) -> str: + return check_string_in_list(arg, "Mouse output", ["usb", "usb_rel", "ps2", ""]) + + def valid_hid_key(arg: Any) -> str: return check_string_in_list(arg, "HID key", KEYMAP, lower=False) |