~aleteoryx/muditaos

ref: d2240e3b97694e0855f5daefd812e4a6a6bf2a06 muditaos/module-bsp/bsp/key_to_cstr.cpp -rw-r--r-- 165 bytes
d2240e3b — Lefucjusz [MOS-1048] Fix not fitting VoLTE button label 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();
}