aboutsummaryrefslogtreecommitdiffstats
path: root/kbd.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-30 13:20:29 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-03-30 13:20:29 +0200
commit25441348c4a28fd0821fe7a173e3c6cc166deb16 (patch)
tree6facf7c7a77fed51285d738ca6c85429c4bdf73b /kbd.h
parent8c315b4082bd2cc70d3df5a3d34f0aeaee17d386 (diff)
downloadfbida-25441348c4a28fd0821fe7a173e3c6cc166deb16.tar.gz
kbd support code
Diffstat (limited to 'kbd.h')
-rw-r--r--kbd.h9
1 files changed, 9 insertions, 0 deletions
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 <linux/input.h>
+
+#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);