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 --- include/mglpp/window/Keyboard.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mglpp/window/Keyboard.hpp b/include/mglpp/window/Keyboard.hpp index 17c4d7c..df2db20 100644 --- a/include/mglpp/window/Keyboard.hpp +++ b/include/mglpp/window/Keyboard.hpp @@ -112,6 +112,9 @@ namespace mgl { /* This should always be the last key */ __NumKeys__ }; + + /* Returns nullptr if unknown key */ + static const char* key_to_string(Key key); }; } -- cgit v1.2.3