diff options
author | Devaev Maxim <[email protected]> | 2020-06-06 13:19:30 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-06 13:19:30 +0300 |
commit | 04c3763e69a1e7d1705d56de0cd6b3e5e13f519d (patch) | |
tree | 09be3a85e221d07837bd1a474c8538b424251f66 /kvmd/plugins/hid/otg/__init__.py | |
parent | 1d7d4100a57b5d654c1434c91e97187fe25698ef (diff) |
send_key_events()
Diffstat (limited to 'kvmd/plugins/hid/otg/__init__.py')
-rw-r--r-- | kvmd/plugins/hid/otg/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/otg/__init__.py b/kvmd/plugins/hid/otg/__init__.py index 3dc49c72..95566d34 100644 --- a/kvmd/plugins/hid/otg/__init__.py +++ b/kvmd/plugins/hid/otg/__init__.py @@ -20,7 +20,9 @@ # ========================================================================== # +from typing import Tuple from typing import Dict +from typing import Iterable from typing import AsyncGenerator from typing import Any @@ -113,8 +115,8 @@ class Plugin(BaseHid): # ===== - def send_key_event(self, key: str, state: bool) -> None: - self.__keyboard_proc.send_key_event(key, state) + def send_key_events(self, keys: Iterable[Tuple[str, bool]]) -> None: + self.__keyboard_proc.send_key_events(keys) def send_mouse_button_event(self, button: str, state: bool) -> None: self.__mouse_proc.send_button_event(button, state) |