From e24228b8751f9f4152c4c76f5644f4e57607bf1f Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 26 Mar 2021 05:19:02 +0300 Subject: mouse input range --- kvmd/apps/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'kvmd/apps/__init__.py') 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 }, -- cgit v1.2.3