From 8fe8bc3a0ed9b7fa6565618936542191dab01823 Mon Sep 17 00:00:00 2001 From: Kevin F Date: Sun, 5 Mar 2023 09:28:42 -0600 Subject: [PATCH] Remove old breakout --- tools/RawCapture.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/RawCapture.md b/tools/RawCapture.md index 9ea7a72..8e97390 100644 --- a/tools/RawCapture.md +++ b/tools/RawCapture.md @@ -2,7 +2,7 @@ This tool captures keyboard input from /dev/input/eventX and pipes it to the fifo accordingly. -An escape sequence of QKEYBOARD (QWERTY) will exit the program, but this can be changed via a command line argument. +An escape sequence of `qkeyboard` (QWERTY) will exit the program, but this can be changed via a command line argument. ## Why @@ -18,6 +18,7 @@ Generally a user would be in this mode when not typing extensively. --- /tools/rawcapture/rawcapture.py #!/usr/bin/python3 +# This tool adapted from https://github.com/whizse/exclusive-keyboard-access by Sven Arvidsson import os import sys import evdev @@ -233,8 +234,7 @@ try: print(event) #e_code = event.code - 1 e_code = event.code - if e_code == 2: - break + try: key_str = KEYMAP[e_code] except KeyError: