summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-06-05 16:37:02 +0300
committerMaxim Devaev <[email protected]>2023-06-05 16:37:02 +0300
commit66c1d321d2048feab7c786d64a5356660216ad38 (patch)
tree04b8de4ca556f629acc590be1491bffad31bf33f /kvmd/apps/__init__.py
parent82aedb9c4ea7b57f03fe83fe0edee4c511c883ef (diff)
vnc: force absolute usb mouse_output
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 1579c07b..04f88ffa 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -82,6 +82,7 @@ from ..validators.net import valid_mac
from ..validators.net import valid_ssl_ciphers
from ..validators.hid import valid_hid_key
+from ..validators.hid import valid_hid_mouse_output
from ..validators.hid import valid_hid_mouse_move
from ..validators.kvm import valid_stream_quality
@@ -662,8 +663,9 @@ def _get_config_scheme() -> dict:
},
"vnc": {
- "desired_fps": Option(30, type=valid_stream_fps),
- "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
+ "desired_fps": Option(30, type=valid_stream_fps),
+ "mouse_output": Option("usb", type=valid_hid_mouse_output),
+ "keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
"server": {
"host": Option("::", type=valid_ip_or_host),