diff options
author | Maxim Devaev <[email protected]> | 2024-12-27 05:42:15 +0200 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2024-12-27 05:42:23 +0200 |
commit | aae529f40bc0afdb876dd87ab497aa16716b5e76 (patch) | |
tree | 88224b9a7415378de5a04e2c54491746ded4e605 | |
parent | 253231adaced32440e0b334e72100bfcbe8ced47 (diff) |
split otg mouse start options
-rw-r--r-- | kvmd/apps/__init__.py | 3 | ||||
-rw-r--r-- | kvmd/apps/otg/__init__.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 7357307f..a7e0e9c1 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -581,6 +581,9 @@ def _get_config_scheme() -> dict: "mouse": { "start": Option(True, type=valid_bool), }, + "mouse_alt": { + "start": Option(True, type=valid_bool), + }, }, "msd": { diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py index b683c5fd..6a08da9d 100644 --- a/kvmd/apps/otg/__init__.py +++ b/kvmd/apps/otg/__init__.py @@ -262,7 +262,7 @@ def _cmd_start(config: Section) -> None: # pylint: disable=too-many-statements, gc.add_mouse(cod.hid.mouse.start, config.otg.remote_wakeup, config.kvmd.hid.mouse.absolute, config.kvmd.hid.mouse.horizontal_wheel) if config.kvmd.hid.mouse_alt.device: logger.info("===== HID-Mouse-Alt =====") - gc.add_mouse(cod.hid.mouse.start, config.otg.remote_wakeup, (not config.kvmd.hid.mouse.absolute), config.kvmd.hid.mouse.horizontal_wheel) + gc.add_mouse(cod.hid.mouse_alt.start, config.otg.remote_wakeup, (not config.kvmd.hid.mouse.absolute), config.kvmd.hid.mouse.horizontal_wheel) if config.kvmd.msd.type == "otg": logger.info("===== MSD =====") |