Remove old breakout

This commit is contained in:
Kevin F 2023-03-05 09:28:42 -06:00
parent 7f1d95183e
commit 8fe8bc3a0e

View File

@ -2,7 +2,7 @@
This tool captures keyboard input from /dev/input/eventX and pipes it to the fifo accordingly. 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 ## Why
@ -18,6 +18,7 @@ Generally a user would be in this mode when not typing extensively.
--- /tools/rawcapture/rawcapture.py --- /tools/rawcapture/rawcapture.py
#!/usr/bin/python3 #!/usr/bin/python3
# This tool adapted from https://github.com/whizse/exclusive-keyboard-access by Sven Arvidsson
import os import os
import sys import sys
import evdev import evdev
@ -233,8 +234,7 @@ try:
print(event) print(event)
#e_code = event.code - 1 #e_code = event.code - 1
e_code = event.code e_code = event.code
if e_code == 2:
break
try: try:
key_str = KEYMAP[e_code] key_str = KEYMAP[e_code]
except KeyError: except KeyError: