aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-21 22:37:23 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-21 22:37:23 +0100
commit227b96247baeec7a3f44cf82c4560f2aca282c16 (patch)
treed71dfee6dab2e4f696edb5825f417e14c7a9e0f5 /include
parentc613fed749cff8fee16ea3906a5f39d1fe8dc20e (diff)
Expose mgl_key_to_x11_keysymHEADmaster
Diffstat (limited to 'include')
-rw-r--r--include/mgl/window/key.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mgl/window/key.h b/include/mgl/window/key.h
index 6863256..3f3976b 100644
--- a/include/mgl/window/key.h
+++ b/include/mgl/window/key.h
@@ -2,6 +2,7 @@
#define _MGL_KEY_H_
#include <stdbool.h>
+#include <stdint.h>
typedef enum {
MGL_KEY_UNKNOWN,
@@ -114,5 +115,7 @@ typedef enum {
/* Return NULL if unknown key */
const char* mgl_key_to_string(mgl_key key);
bool mgl_key_is_modifier(mgl_key key);
+/* Returns XK_VoidSymbol on no match */
+uint64_t mgl_key_to_x11_keysym(mgl_key key);
#endif /* _MGL_KEY_H_ */