~aleteoryx/muditaos

ref: 2f74db29a6442a9f1b6e78334ea9da72cd0dff2d muditaos/module-bsp/bsp/key_to_cstr.cpp -rw-r--r-- 165 bytes
2f74db29 — Lefucjusz [MOS-608] Fix crash on phone turn off 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();
}