diff options
author | Ian C <ianc@noddybox.co.uk> | 2019-06-25 18:37:47 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2019-06-25 18:37:47 +0000 |
commit | b2f86e20e052d9923523e29743172ea98266d28f (patch) | |
tree | 43399e99e34fcb20188cc4d1dea3644dada13b3b /hardwire/keystr.h | |
parent | ad1c73e9ff2580236887019ec176224f820c4c62 (diff) |
Diffstat (limited to 'hardwire/keystr.h')
-rw-r--r-- | hardwire/keystr.h | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/hardwire/keystr.h b/hardwire/keystr.h new file mode 100644 index 0000000..61f8398 --- /dev/null +++ b/hardwire/keystr.h @@ -0,0 +1,141 @@ +/*
+ General purpose mapping of keycodes to key presses
+*/
+
+#ifndef _KEYSTRH
+
+#define _KEYSTRH
+
+/* 128 string scan code table
+*/
+static char *keystr[128]=
+ {
+ "Code 0", /* 0 */
+ "Esc", /* KEY_ESC 1 */
+ "1", /* KEY_1 2 */
+ "2", /* KEY_2 3 */
+ "3", /* KEY_3 4 */
+ "4", /* KEY_4 5 */
+ "5", /* KEY_5 6 */
+ "6", /* KEY_6 7 */
+ "7", /* KEY_7 8 */
+ "8", /* KEY_8 9 */
+ "9", /* KEY_9 10 */
+ "0", /* KEY_0 11 */
+ "-", /* KEY_MINUS 12 */
+ "=", /* KEY_EQUALS 13 */
+ "Backspace", /* KEY_BACKSPACE 14 */
+ "Tab", /* KEY_TAB 15 */
+ "Q", /* KEY_Q 16 */
+ "W", /* KEY_W 17 */
+ "E", /* KEY_E 18 */
+ "R", /* KEY_R 19 */
+ "T", /* KEY_T 20 */
+ "Y", /* KEY_Y 21 */
+ "U", /* KEY_U 22 */
+ "I", /* KEY_I 23 */
+ "O", /* KEY_O 24 */
+ "P", /* KEY_P 25 */
+ "[", /* KEY_OPENBRACE 26 */
+ "]", /* KEY_CLOSEBRACE 27 */
+ "Enter", /* KEY_ENTER 28 */
+ "Left Ctrl", /* KEY_LCONTROL 29 */
+ "A", /* KEY_A 30 */
+ "S", /* KEY_S 31 */
+ "D", /* KEY_D 32 */
+ "F", /* KEY_F 33 */
+ "G", /* KEY_G 34 */
+ "H", /* KEY_H 35 */
+ "J", /* KEY_J 36 */
+ "K", /* KEY_K 37 */
+ "L", /* KEY_L 38 */
+ ";", /* KEY_COLON 39 */
+ "'", /* KEY_QUOTE 40 */
+ "`", /* KEY_TILDE 41 */
+ "Left Shift", /* KEY_LSHIFT 42 */
+ "#", /* KEY_BACKSLASH 43 */
+ "Z", /* KEY_Z 44 */
+ "X", /* KEY_X 45 */
+ "C", /* KEY_C 46 */
+ "V", /* KEY_V 47 */
+ "B", /* KEY_B 48 */
+ "N", /* KEY_N 49 */
+ "M", /* KEY_M 50 */
+ ",", /* KEY_COMMA 51 */
+ ".", /* KEY_STOP 52 */
+ "/", /* KEY_SLASH 53 */
+ "Right Shift", /* KEY_RSHIFT 54 */
+ "KP *", /* KEY_ASTERISK 55 */
+ "Alt", /* KEY_ALT 56 */
+ "Space", /* KEY_SPACE 57 */
+ "Caps Lock", /* KEY_CAPSLOCK 58 */
+ "F1", /* KEY_F1 59 */
+ "F2", /* KEY_F2 60 */
+ "F3", /* KEY_F3 61 */
+ "F4", /* KEY_F4 62 */
+ "F5", /* KEY_F5 63 */
+ "F6", /* KEY_F6 64 */
+ "F7", /* KEY_F7 65 */
+ "F8", /* KEY_F8 66 */
+ "F9", /* KEY_F9 67 */
+ "F10", /* KEY_F10 68 */
+ "Num Lock", /* KEY_NUMLOCK 69 */
+ "Scroll Lock", /* KEY_SCRLOCK 70 */
+ "Home", /* KEY_HOME 71 */
+ "Up", /* KEY_UP 72 */
+ "Page Up", /* KEY_PGUP 73 */
+ "KP -", /* KEY_MINUS_PAD 74 */
+ "Left", /* KEY_LEFT 75 */
+ "KP 5", /* KEY_5_PAD 76 */
+ "Right", /* KEY_RIGHT 77 */
+ "KP +", /* KEY_PLUS_PAD 78 */
+ "End", /* KEY_END 79 */
+ "Down", /* KEY_DOWN 80 */
+ "Page Down", /* KEY_PGDN 81 */
+ "Ins", /* KEY_INSERT 82 */
+ "Del", /* KEY_DEL 83 */
+ "Prt Scr", /* KEY_PRTSCR 84 */
+ "F11", /* KEY_F11 87 */
+ "F12", /* KEY_F12 88 */
+ "Code 89", /* 89 */
+ "Code 90", /* 90 */
+ "Left Window", /* KEY_LWIN 91 */
+ "Right Window", /* KEY_RWIN 92 */
+ "Menu", /* KEY_MENU 93 */
+ "Code 94", /* 94 */
+ "Code 95", /* 95 */
+ "Code 96", /* 96 */
+ "Code 97", /* 97 */
+ "Code 98", /* 98 */
+ "Code 99", /* 99 */
+ "Pad", /* KEY_PAD 100 */
+ "Code 101", /* 101 */
+ "Code 102", /* 102 */
+ "Code 103", /* 103 */
+ "Code 104", /* 104 */
+ "Code 105", /* 105 */
+ "Code 106", /* 106 */
+ "Code 107", /* 107 */
+ "Code 108", /* 108 */
+ "Code 109", /* 109 */
+ "Code 110", /* 110 */
+ "Code 111", /* 111 */
+ "Code 112", /* 112 */
+ "Code 113", /* 113 */
+ "Code 114", /* 114 */
+ "Code 115", /* 115 */
+ "Code 116", /* 116 */
+ "Code 117", /* 117 */
+ "Code 118", /* 118 */
+ "Code 119", /* 119 */
+ "Right Ctrl", /* KEY_RCONTROL 120 */
+ "Alt Gr", /* KEY_ALTGR 121 */
+ "KP /", /* KEY_SLASH2 122 */
+ "Pause", /* KEY_PAUSE 123 */
+ "Code 124", /* 124 */
+ "Code 125", /* 125 */
+ "Code 126", /* 126 */
+ "Code 127", /* 127 */
+ };
+
+#endif
|