diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-01-21 02:07:57 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-01-21 02:08:31 +0100 |
commit | 101013207f1dde35d67910b0555054d127c26aec (patch) | |
tree | 31d5012c95f0f4fa0fdb223749e7074b41515027 /include | |
parent | e776c85d1986ee9cd7629ec5f04e89f79230378c (diff) |
Add Keyboard::key_to_string
Diffstat (limited to 'include')
-rw-r--r-- | include/mglpp/window/Keyboard.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); }; } |