diff options
author | Maxim Devaev <[email protected]> | 2020-11-03 04:50:08 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-03 04:50:08 +0300 |
commit | 544f4b3fecb84e2ae21eb71ec0c37c8bec38261c (patch) | |
tree | 9199dba963bf8dde4cf4137f61b0cb5119fb7159 /kvmd/validators | |
parent | 6ec82dde5d4eb4b52956fff2029f33c4e651b919 (diff) |
Relative (#18)
* refactoring
* basic relative mouse mode
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/kvm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py index f89b1b8a..6ae92fa4 100644 --- a/kvmd/validators/kvm.py +++ b/kvmd/validators/kvm.py @@ -96,8 +96,8 @@ def valid_hid_mouse_button(arg: Any) -> str: return check_string_in_list(arg, "HID mouse button", ["left", "right", "middle", "up", "down"]) -def valid_hid_mouse_wheel(arg: Any) -> int: - arg = valid_number(arg, name="HID mouse wheel") +def valid_hid_mouse_delta(arg: Any) -> int: + arg = valid_number(arg, name="HID mouse delta") return min(max(-127, arg), 127) |