Implement axis movement method

This commit is contained in:
xs5871
2022-10-22 20:49:12 +00:00
committed by xs5871
parent 1ca27dab58
commit ca800331de
2 changed files with 10 additions and 9 deletions

View File

@@ -42,6 +42,10 @@ class Axis:
def __repr__(self) -> str:
return f'Axis(code={self.code}, delta={self.delta})'
def move(self, keyboard: Keyboard, delta: int):
keyboard.hid_pending = True
self.delta += delta
def maybe_make_key(
code: Optional[int],