From 25441348c4a28fd0821fe7a173e3c6cc166deb16 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 30 Mar 2016 13:20:29 +0200 Subject: kbd support code --- kbd.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 kbd.h (limited to 'kbd.h') diff --git a/kbd.h b/kbd.h new file mode 100644 index 0000000..cd15fd3 --- /dev/null +++ b/kbd.h @@ -0,0 +1,9 @@ +#include + +#define KEY_MOD_SHIFT (1 << 0) +#define KEY_MOD_CTRL (1 << 1) + +uint32_t kbd_parse(const char *key, uint32_t *mod); + +void tty_raw(void); +void tty_restore(void); -- cgit