Go to the source code of this file.
Defines | |
#define | __NONPRINT(name, usage_id) USB_HIDUT_KBD_KEY(name, usage_id, 0, 0, 0, 0) |
#define | USB_HIDUT_KBD_KEY(name, usage_id, letter, letter_caps, letter_mod1, letter_mod2) |
Declare keyboard key. | |
Variables | |
_ | |
B | |
b | |
D | |
d | |
F | |
f | |
H | |
h | |
J | |
j | |
L | |
l | |
N | |
n | |
P | |
p | |
R | |
r | |
t | |
T | |
t | |
V | |
v | |
X | |
x | |
x05 | |
x07 | |
x09 | |
x0B | |
x0D | |
x0F | |
x11 | |
x13 | |
x15 | |
x17 | |
x19 | |
x1B | |
x1D | |
x1F | |
x21 | |
x23 | |
x25 | |
x27 | |
x29 | |
x2B | |
x2D | |
x2F | |
x32 | |
x34 | |
x36 | |
<', 0, 0) USB_HIDUT_KBD_KEY(PERIOD, 0x37,'.','> | x39 |
Z | |
z |
This is not a typical header as by default it is equal to empty file. However, by cleverly defining the USB_HIDUT_KBD_KEY you can use it to generate conversion tables etc.
For example, this creates enum for known keys:
#define USB_HIDUT_KBD_KEY(name, usage_id, l, lc, l1, l2) \ USB_KBD_KEY_##name = usage_id, typedef enum { #include <usb/hidutkbd.h> } usb_key_code_t;
Maybe, it might be better that you would place such enums into separate files and create them as separate step before compiling to allow tools such as Doxygen get the definitions right.
Definition in file kbdgen.h.