mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
improved jiggler logic
This commit is contained in:
@@ -32,3 +32,7 @@ class MouseRange:
|
||||
@classmethod
|
||||
def remap(cls, value: int, out_min: int, out_max: int) -> int:
|
||||
return tools.remap(value, cls.MIN, cls.MAX, out_min, out_max)
|
||||
|
||||
@classmethod
|
||||
def normalize(cls, value: int) -> int:
|
||||
return min(max(cls.MIN, value), cls.MAX)
|
||||
|
||||
Reference in New Issue
Block a user