#include "../include/defines.h" #include #include #ifndef KEYCODE_CONV_H_ #define KEYCODE_CONV_H_ typedef struct keyCode keyCode; struct keyCode { uint8_t key_code; const char *key_name; }; #define KEYCODE(KC) \ { KC, #KC } uint8_t get_keycode_by_name(char *key_name); uint8_t get_modkeycode_by_name(char *modkey_name); #endif /* KEYCODE_CONV_H_ */