You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
447 B
C

#include "../include/keycodes.h"
#include <stdint.h>
#include <string.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);
uint8_t get_modkeycode_by_name(char *modkey_name);
#endif /* KEYCODE_CONV_H_ */