mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
mouse wheel from -127 to +127
https://github.com/NicoHood/HID/blob/0835e6a/src/SingleReport/SingleAbsoluteMouse.cpp#L54
This commit is contained in:
parent
df3e2875d7
commit
bf9e004002
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user