From 3e7bf668046726fb635b00bb20fdda9ac7803e2e Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Mon, 26 Aug 2024 11:37:36 +0200 Subject: [PATCH] Add readme to dora-keyboard and remove unused comment --- node-hub/dora-keyboard/README.md | 2 ++ node-hub/dora-keyboard/dora_keyboard/main.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/node-hub/dora-keyboard/README.md b/node-hub/dora-keyboard/README.md index a9474044..fcbfa0c7 100644 --- a/node-hub/dora-keyboard/README.md +++ b/node-hub/dora-keyboard/README.md @@ -1 +1,3 @@ # Dora Node for listening to keyboard input. + +Send char only in the `char` output stream, as string, on press. diff --git a/node-hub/dora-keyboard/dora_keyboard/main.py b/node-hub/dora-keyboard/dora_keyboard/main.py index 599e580e..ebc15a19 100644 --- a/node-hub/dora-keyboard/dora_keyboard/main.py +++ b/node-hub/dora-keyboard/dora_keyboard/main.py @@ -14,6 +14,3 @@ with keyboard.Events() as events: if hasattr(event.key, "char"): if event.key.char is not None: node.send_output("char", pa.array([event.key.char])) - # busy_wait(0.1) - # if event is not None and isinstance(event, Events.Release): - # node.send_output("move", pa.array([0.0, 0, 0, 0, 0, 0]))