improved jiggler logic

This commit is contained in:
Maxim Devaev
2025-01-10 22:56:28 +02:00
parent 05bced1461
commit 72c9ae3aa0
2 changed files with 30 additions and 21 deletions

View File

@@ -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)