summaryrefslogtreecommitdiff
path: root/src/hid_keycodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hid_keycodes.c')
-rw-r--r--src/hid_keycodes.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/hid_keycodes.c b/src/hid_keycodes.c
new file mode 100644
index 0000000..19b6f69
--- /dev/null
+++ b/src/hid_keycodes.c
@@ -0,0 +1,43 @@
+
+#include "hid_keycodes.h"
+
+struct keymap_entry keycode_mapping[37] = {
+ { KEY_A, 'A' },
+ { KEY_B, 'B' },
+ { KEY_C, 'C' },
+ { KEY_D, 'D' },
+ { KEY_E, 'E' },
+ { KEY_F, 'F' },
+ { KEY_G, 'G' },
+ { KEY_H, 'H' },
+ { KEY_I, 'I' },
+ { KEY_J, 'J' },
+ { KEY_K, 'K' },
+ { KEY_L, 'L' },
+ { KEY_M, 'M' },
+ { KEY_N, 'N' },
+ { KEY_O, 'O' },
+ { KEY_P, 'P' },
+ { KEY_Q, 'Q' },
+ { KEY_R, 'R' },
+ { KEY_S, 'S' },
+ { KEY_T, 'T' },
+ { KEY_U, 'U' },
+ { KEY_V, 'V' },
+ { KEY_W, 'W' },
+ { KEY_X, 'X' },
+ { KEY_Y, 'Y' },
+ { KEY_Z, 'Z' },
+ { KEY_1, '1' },
+ { KEY_2, '2' },
+ { KEY_3, '3' },
+ { KEY_4, '4' },
+ { KEY_5, '5' },
+ { KEY_6, '6' },
+ { KEY_7, '7' },
+ { KEY_8, '8' },
+ { KEY_9, '9' },
+ { KEY_0, '0' },
+ { KEY_SPACE, ' ' },
+};
+