diff options
author | Maxim Devaev <[email protected]> | 2021-07-24 02:37:10 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-07-24 02:37:10 +0300 |
commit | 37060de4c3306e3f64d44f41b2d5eb392d8fb4f3 (patch) | |
tree | 887a1ae473f84e416554d8d07a09bd33198e050d /kvmd/apps | |
parent | a33efcaef3e69fb097a71198d6b8cecb02491800 (diff) |
dual mouse mode
Diffstat (limited to 'kvmd/apps')
-rw-r--r-- | kvmd/apps/otg/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py index 456f35dd..a54a8b0e 100644 --- a/kvmd/apps/otg/__init__.py +++ b/kvmd/apps/otg/__init__.py @@ -212,6 +212,12 @@ def _cmd_start(config: Section) -> None: absolute=config.kvmd.hid.mouse.absolute, horizontal_wheel=config.kvmd.hid.mouse.horizontal_wheel, )) + if config.kvmd.hid.mouse_alt.device: + logger.info("===== Required HID-Mouse ALT =====") + _create_hid(gadget_path, config_path, 2, make_mouse_hid( + absolute=(not config.kvmd.hid.mouse.absolute), + horizontal_wheel=config.kvmd.hid.mouse_alt.horizontal_wheel, + )) if config.kvmd.msd.type == "otg": logger.info("===== Required MSD =====") |