rayzor

annotate src/scancode.h @ 2:c273c6f799a4

added fixcase utility to fix the ftp-ed files' case on linux
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 18:31:00 +0300
parents 2a5340a6eee4
children d94a69933a71
rev   line source
nuclear@1 1 #ifndef KEYB_C_
nuclear@1 2 #error "do not include scancode.h anywhere..."
nuclear@1 3 #endif
nuclear@1 4
nuclear@1 5 /* special keys */
nuclear@1 6 enum {
nuclear@1 7 LALT, RALT,
nuclear@1 8 LCTRL, RCTRL,
nuclear@1 9 LSHIFT, RSHIFT,
nuclear@1 10 F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12,
nuclear@1 11 CAPSLK, NUMLK, SCRLK, SYSRQ,
nuclear@1 12 ESC = 27,
nuclear@1 13 INSERT, DEL, HOME, END, PGUP, PGDN, LEFT, RIGHT, UP, DOWN,
nuclear@1 14 NUM_DOT, NUM_ENTER, NUM_PLUS, NUM_MINUS, NUM_MUL, NUM_DIV,
nuclear@1 15 NUM_0, NUM_1, NUM_2, NUM_3, NUM_4, NUM_5, NUM_6, NUM_7, NUM_8, NUM_9,
nuclear@1 16 BACKSP = 127
nuclear@1 17 };
nuclear@1 18
nuclear@1 19 /* table with rough translations from set 1 scancodes to ASCII-ish */
nuclear@1 20 static int scantbl[] = {
nuclear@1 21 0, ESC, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', '\b', /* 0 - e */
nuclear@1 22 '\t', 'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', /* f - 1c */
nuclear@1 23 LCTRL, 'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`', /* 1d - 29 */
nuclear@1 24 LSHIFT, '\\', 'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', RSHIFT, /* 2a - 36 */
nuclear@1 25 NUM_MUL, LALT, ' ', CAPSLK, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, /* 37 - 44 */
nuclear@1 26 NUMLK, SCRLK, NUM_7, NUM_8, NUM_9, NUM_MINUS, NUM_4, NUM_5, NUM_6, NUM_PLUS, /* 45 - 4e */
nuclear@1 27 NUM_1, NUM_2, NUM_3, NUM_0, NUM_DOT, SYSRQ, 0, 0, F11, F12, /* 4d - 58 */
nuclear@1 28 0, 0, 0, 0, 0, 0, 0, /* 59 - 5f */
nuclear@1 29 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 60 - 6f */
nuclear@1 30 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 /* 70 - 7f */
nuclear@1 31 };