From 2f4f3e13aa6a6dbbb5a45e02b792eb935e91c766 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 12 Nov 2018 11:59:11 +0900 Subject: Handshake working with new abstractions --- src/hid_keycodes.c | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/hid_keycodes.c (limited to 'src/hid_keycodes.c') 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, ' ' }, +}; + -- cgit