diff options
author | Devaev Maxim <[email protected]> | 2020-12-25 08:35:02 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-12-25 08:35:02 +0300 |
commit | 4447e49abb518a4da83d6adc16ca1bb5dcba5fae (patch) | |
tree | 3edc747b961f278de277ac794783ae2a264ba270 /kvmd/plugins/hid/__init__.py | |
parent | 08fc4130440001c69151884e12db1b3fb259971f (diff) |
api refactoring
Diffstat (limited to 'kvmd/plugins/hid/__init__.py')
-rw-r--r-- | kvmd/plugins/hid/__init__.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/kvmd/plugins/hid/__init__.py b/kvmd/plugins/hid/__init__.py index 0ba82e1b..c275f075 100644 --- a/kvmd/plugins/hid/__init__.py +++ b/kvmd/plugins/hid/__init__.py @@ -25,6 +25,7 @@ from typing import Dict from typing import Iterable from typing import AsyncGenerator from typing import Type +from typing import Optional from .. import BasePlugin from .. import get_plugin_class @@ -67,11 +68,9 @@ class BaseHid(BasePlugin): def send_mouse_wheel_event(self, delta_x: int, delta_y: int) -> None: raise NotImplementedError - def set_keyboard_output(self, output: str) -> None: - _ = output - - def set_mouse_output(self, output: str) -> None: - _ = output + def set_params(self, keyboard_output: Optional[str]=None, mouse_output: Optional[str]=None) -> None: + _ = keyboard_output + _ = mouse_output def set_connected(self, connected: bool) -> None: _ = connected |