18 lines
289 B
C
18 lines
289 B
C
#include <stdint.h>
|
|
|
|
#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);
|
|
|
|
#endif /* KEYCODE_CONV_H_ */
|