summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-09 21:06:32 +0000
committerDevaev Maxim <[email protected]>2018-07-09 21:06:37 +0000
commit646d2cd996f8f07bceaa03a81157edda5a4bf4f0 (patch)
tree29d185d70750bf77ea481ec2ea08c96ccf6fe230 /kvmd
parentc63e5a39abcb96dc9af56e91f25b7da266d681b2 (diff)
ps2keyboard -> keyboard
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/kvmd/__init__.py4
-rw-r--r--kvmd/kvmd/keyboard.py (renamed from kvmd/kvmd/ps2.py)2
-rw-r--r--kvmd/kvmd/server.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/kvmd/kvmd/__init__.py b/kvmd/kvmd/__init__.py
index 422a531c..6f2321c3 100644
--- a/kvmd/kvmd/__init__.py
+++ b/kvmd/kvmd/__init__.py
@@ -3,7 +3,7 @@ import asyncio
from .application import init
from .logging import get_logger
-from .ps2 import Ps2Keyboard
+from .keyboard import Keyboard
from .atx import Atx
from .msd import MassStorageDevice
from .streamer import Streamer
@@ -18,7 +18,7 @@ def main() -> None:
with gpio.bcm():
loop = asyncio.get_event_loop()
- keyboard = Ps2Keyboard(
+ keyboard = Keyboard(
clock=int(config["keyboard"]["pinout"]["clock"]),
data=int(config["keyboard"]["pinout"]["data"]),
pulse=float(config["keyboard"]["pulse"]),
diff --git a/kvmd/kvmd/ps2.py b/kvmd/kvmd/keyboard.py
index 84e51fcf..516a7baa 100644
--- a/kvmd/kvmd/ps2.py
+++ b/kvmd/kvmd/keyboard.py
@@ -76,7 +76,7 @@ def _key_event_to_ps2_codes(event: _KeyEvent) -> List[int]:
return []
-class Ps2Keyboard(multiprocessing.Process):
+class Keyboard(multiprocessing.Process):
# http://dkudrow.blogspot.com/2013/08/ps2-keyboard-emulation-with-arduino-uno.html
def __init__(self, clock: int, data: int, pulse: float) -> None:
diff --git a/kvmd/kvmd/server.py b/kvmd/kvmd/server.py
index 2ec5ae41..34350507 100644
--- a/kvmd/kvmd/server.py
+++ b/kvmd/kvmd/server.py
@@ -13,7 +13,7 @@ from typing import Type
import aiohttp.web
-from .ps2 import Ps2Keyboard
+from .keyboard import Keyboard
from .atx import Atx
@@ -66,7 +66,7 @@ def _json_200(result: Optional[Dict]=None) -> aiohttp.web.Response:
class Server: # pylint: disable=too-many-instance-attributes
def __init__(
self,
- keyboard: Ps2Keyboard,
+ keyboard: Keyboard,
atx: Atx,
msd: MassStorageDevice,
streamer: Streamer,