~aleteoryx/muditaos

ref: 03de91c8d2c4dace3e031e323f3424c6dfb0ce16 muditaos/module-bsp/bsp/key_to_cstr.cpp -rw-r--r-- 165 bytes
03de91c8 — Kuba Kleczkowski [MOS-975] Fixed missing new message notification 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();
}