diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/window/key.h | 3 |
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_ */ |