diff options
author | Devaev Maxim <[email protected]> | 2021-03-26 21:32:21 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-03-26 21:32:21 +0300 |
commit | a66221a494e35ab070d13291ce82928797bf95d4 (patch) | |
tree | 3dd496eccf1f3281dad1d545e50a111c28ccdfbc /kvmd/apps/__init__.py | |
parent | 1674cf70b3f925fe055398911761542c14d304e9 (diff) |
fixed mouse remap
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index aa724979..cb5666b9 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -39,6 +39,8 @@ import pygments.formatters from .. import tools +from ..mouse import MouseRange + from ..plugins import UnknownPluginError from ..plugins.auth import get_auth_service_class from ..plugins.hid import get_hid_class @@ -367,13 +369,13 @@ def _get_config_scheme() -> Dict: "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), + "min": Option(MouseRange.MIN, type=valid_hid_mouse_move), + "max": Option(MouseRange.MAX, type=valid_hid_mouse_move), }, "mouse_y_range": { - "min": Option(-32768, type=valid_hid_mouse_move), - "max": Option(32767, type=valid_hid_mouse_move), + "min": Option(MouseRange.MIN, type=valid_hid_mouse_move), + "max": Option(MouseRange.MAX, type=valid_hid_mouse_move), }, # Dynamic content |