summaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-10-21 23:37:24 +0100
committerPhil Jones <philj56@gmail.com>2022-10-21 23:37:24 +0100
commitd1b94b4487c72b13320a281ad6a2fc291e4c79c7 (patch)
treed4b7ce738f9ad14dd55a1054a39901bf835db2a5 /src/input.h
parent7bb70c7407f652c584837d651fb9bcdb6b66ff9f (diff)
Initial input handling cleanup.
Also changed keyboard shortcuts to use physical keycodes, rather than XKB keysyms. This means shortcuts don't shift when keyboard layout is changed.
Diffstat (limited to 'src/input.h')
-rw-r--r--src/input.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h
new file mode 100644
index 0000000..f78c365
--- /dev/null
+++ b/src/input.h
@@ -0,0 +1,9 @@
+#ifndef INPUT_H
+#define INPUT_H
+
+#include <xkbcommon/xkbcommon.h>
+#include "tofi.h"
+
+void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode);
+
+#endif /* INPUT_H */