summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/otg/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-23 05:11:04 +0300
committerMaxim Devaev <[email protected]>2021-07-23 05:17:00 +0300
commitcbc3a4ceef781a6f40a7bd079b0dab470159f31d (patch)
tree8795fcc755033840c804d40a6e2de0ac0f49688e /kvmd/plugins/hid/otg/__init__.py
parentbc73e74161f61f3d56f7395fec161febe65e93e6 (diff)
rewrite otg hid
Diffstat (limited to 'kvmd/plugins/hid/otg/__init__.py')
-rw-r--r--kvmd/plugins/hid/otg/__init__.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py
index 9a9a2aef..779c8417 100644
--- a/kvmd/plugins/hid/otg/__init__.py
+++ b/kvmd/plugins/hid/otg/__init__.py
@@ -63,20 +63,18 @@ class Plugin(BaseHid):
def get_plugin_options(cls) -> Dict:
return {
"keyboard": {
- "device": Option("", type=valid_abs_path, unpack_as="device_path"),
- "select_timeout": Option(1.0, type=valid_float_f01),
- "write_retries": Option(5, type=valid_int_f1),
- "write_retries_delay": Option(0.1, type=valid_float_f01),
- "reopen_delay": Option(0.5, type=valid_float_f01),
+ "device": Option("", type=valid_abs_path, unpack_as="device_path"),
+ "select_timeout": Option(0.1, type=valid_float_f01),
+ "queue_timeout": Option(0.1, type=valid_float_f01),
+ "write_retries": Option(150, type=valid_int_f1),
},
"mouse": {
- "device": Option("", type=valid_abs_path, unpack_as="device_path"),
- "select_timeout": Option(1.0, type=valid_float_f01),
- "write_retries": Option(5, type=valid_int_f1),
- "write_retries_delay": Option(0.1, type=valid_float_f01),
- "reopen_delay": Option(0.5, type=valid_float_f01),
- "absolute": Option(True, type=valid_bool),
- "horizontal_wheel": Option(True, type=valid_bool),
+ "device": Option("", type=valid_abs_path, unpack_as="device_path"),
+ "select_timeout": Option(0.1, type=valid_float_f01),
+ "queue_timeout": Option(0.1, type=valid_float_f01),
+ "write_retries": Option(150, type=valid_int_f1),
+ "absolute": Option(True, type=valid_bool),
+ "horizontal_wheel": Option(True, type=valid_bool),
},
"noop": Option(False, type=valid_bool),
}