~aleteoryx/muditaos

ref: 059d6daf96b15db992a3c9b038ce3917a7b42a20 muditaos/module-bsp/bsp/key_to_cstr.cpp -rw-r--r-- 165 bytes
059d6daf — Paweł Joński [BH-1454] Remove binary dependencies from linux build 3 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();
}