From 227b96247baeec7a3f44cf82c4560f2aca282c16 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Jan 2025 22:37:23 +0100 Subject: Expose mgl_key_to_x11_keysym --- include/mgl/window/key.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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 +#include 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_ */ -- cgit v1.2.3