~aleteoryx/muditaos

ref: 70d3ba4c03655d7b1e90cbeab88f116bd892e600 muditaos/module-bsp/bsp/key_to_cstr.cpp -rw-r--r-- 165 bytes
70d3ba4c — Dawid Wojtas [BH-1935] Fix the backlight in pre-wake up 1 year, 10 months 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();
}