From d1b94b4487c72b13320a281ad6a2fc291e4c79c7 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Fri, 21 Oct 2022 23:37:24 +0100 Subject: 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. --- src/input.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/input.h (limited to 'src/input.h') 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 +#include "tofi.h" + +void input_handle_keypress(struct tofi *tofi, xkb_keycode_t keycode); + +#endif /* INPUT_H */ -- cgit v1.2.3