2022-02-20 00:52:42 +01:00
|
|
|
#include "../include/defines.h"
|
|
|
|
|
2022-02-16 00:41:47 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifndef KEYCODE_CONV_H_
|
|
|
|
#define KEYCODE_CONV_H_
|
|
|
|
|
|
|
|
typedef struct keyCode keyCode;
|
|
|
|
struct keyCode {
|
2022-02-20 00:52:42 +01:00
|
|
|
uint8_t key_code;
|
2022-02-16 00:41:47 +01:00
|
|
|
const char *key_name;
|
|
|
|
};
|
|
|
|
|
2022-02-20 00:52:42 +01:00
|
|
|
#define KEYCODE(KC) \
|
2022-02-16 00:41:47 +01:00
|
|
|
{ KC, #KC }
|
|
|
|
|
|
|
|
uint8_t get_keycode_by_name(char *key_name);
|
|
|
|
uint8_t get_modkeycode_by_name(char *modkey_name);
|
|
|
|
|
2022-02-20 00:52:42 +01:00
|
|
|
#endif /* KEYCODE_CONV_H_ */
|