aboutsummaryrefslogtreecommitdiff
path: root/src/window/Keyboard.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-21 02:07:57 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-21 02:08:31 +0100
commit101013207f1dde35d67910b0555054d127c26aec (patch)
tree31d5012c95f0f4fa0fdb223749e7074b41515027 /src/window/Keyboard.cpp
parente776c85d1986ee9cd7629ec5f04e89f79230378c (diff)
Add Keyboard::key_to_stringHEADmaster
Diffstat (limited to 'src/window/Keyboard.cpp')
-rw-r--r--src/window/Keyboard.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/window/Keyboard.cpp b/src/window/Keyboard.cpp
new file mode 100644
index 0000000..bd031db
--- /dev/null
+++ b/src/window/Keyboard.cpp
@@ -0,0 +1,12 @@
+#include "../../include/mglpp/window/Keyboard.hpp"
+
+extern "C" {
+#include <mgl/window/key.h>
+}
+
+namespace mgl {
+ // static
+ const char* Keyboard::key_to_string(Key key) {
+ return mgl_key_to_string((mgl_key)key);
+ }
+} \ No newline at end of file