From 101013207f1dde35d67910b0555054d127c26aec Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 21 Jan 2025 02:07:57 +0100 Subject: Add Keyboard::key_to_string --- src/window/Keyboard.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/window/Keyboard.cpp (limited to 'src') 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 +} + +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 -- cgit v1.2.3