From 66e7ceaa96de5c2acdea89b33773219ec0bb2c27 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Jan 2025 02:06:53 +0100 Subject: Add mgl_key_to_string --- 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 0cd3c03..c58fbcd 100644 --- a/include/mgl/window/key.h +++ b/include/mgl/window/key.h @@ -109,4 +109,7 @@ typedef enum { __MGL_NUM_KEYS__ } mgl_key; +/* Return NULL if unknown key */ +const char* mgl_key_to_string(mgl_key key); + #endif /* _MGL_KEY_H_ */ -- cgit v1.2.3