summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-03-26 05:19:02 +0300
committerDevaev Maxim <[email protected]>2021-03-26 05:19:02 +0300
commite24228b8751f9f4152c4c76f5644f4e57607bf1f (patch)
tree92dfcf9fcb2122578964e15390ff7bb8100f3ee4 /kvmd/apps/__init__.py
parent7f23f82a0d4147c2ce2369614827b9f8b583a234 (diff)
mouse input range
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index ed6a3101..aa724979 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -363,7 +363,19 @@ def _get_config_scheme() -> Dict:
"hid": {
"type": Option("", type=valid_stripped_string_not_empty),
+
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
+
+ "mouse_x_range": {
+ "min": Option(-32768, type=valid_hid_mouse_move),
+ "max": Option(32767, type=valid_hid_mouse_move),
+ },
+
+ "mouse_y_range": {
+ "min": Option(-32768, type=valid_hid_mouse_move),
+ "max": Option(32767, type=valid_hid_mouse_move),
+ },
+
# Dynamic content
},