summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-26 02:48:43 +0300
committerDevaev Maxim <[email protected]>2019-09-26 02:49:42 +0300
commitbf9e004002dd40437cb005fa317c66c7f3d5bae3 (patch)
treea270831f3d11f84f3db8fe5c4b6def09c6a46ff1 /kvmd/validators
parentdf3e2875d7044a627a0b6e640746e7a24f7539a6 (diff)
mouse wheel from -127 to +127
https://github.com/NicoHood/HID/blob/0835e6a/src/SingleReport/SingleAbsoluteMouse.cpp#L54
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/kvm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/validators/kvm.py b/kvmd/validators/kvm.py
index 29b45500..b49123e1 100644
--- a/kvmd/validators/kvm.py
+++ b/kvmd/validators/kvm.py
@@ -81,4 +81,4 @@ def valid_hid_mouse_button(arg: Any) -> str:
def valid_hid_mouse_wheel(arg: Any) -> int:
arg = valid_number(arg, name="HID mouse wheel")
- return min(max(-128, arg), 127)
+ return min(max(-127, arg), 127)