~aleteoryx/muditaos

ref: 9bc622888f6436d502513c4425dec246772b1531 muditaos/module-bsp/bsp/key_to_cstr.cpp -rw-r--r-- 165 bytes
9bc62288 — Lukasz Mastalerz [CP-1974] Deleting all templates leaves some text on pure screen 2 years ago
                                                                                
1
2
3
4
5
6
7
#include <magic_enum.hpp>
#include "hal/key_input/KeyEventDefinitions.hpp"

const char *c_str(bsp::KeyCodes code)
{
    return magic_enum::enum_name(code).data();
}