X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/a4b84140e3c9ae6f8739d72621581c5673606847..3dd054cfe33c0ccc30aa0e3e6047e452e006f142:/aseg/keyboard.c?ds=sidebyside diff --git a/aseg/keyboard.c b/aseg/keyboard.c index 1a8fb2a..4b84b4f 100644 --- a/aseg/keyboard.c +++ b/aseg/keyboard.c @@ -4,7 +4,7 @@ static unsigned char kbd_inj_buffer[128]; static int kbd_inj_start = 0; static int kbd_inj_end = 0; -int kbd_mode = 2; +int kbd_mode = 1; static const char scancodes2[][8] = { ['a'] = "\x1c\xf0\x1c", @@ -101,6 +101,14 @@ static const char scancodes2[][8] = { ['>'] = "\x12\x49\xf0\x49\xf0\x12", ['/'] = "\x4a\xf0\x4a", ['?'] = "\x12\x4a\xf0\x4a\xf0\x12", + ['\n'] = "\x5a\xf0\x5a", + ['\t'] = "\x0d\xf0\x0d", + ['\b'] = "\x66\xf0\x66", + [' '] = "\x29\xf0\x29", + [0x82] = "\xE0\x75\xE0\xF0\x75", + [0x83] = "\xE0\x72\xE0\xF0\x72", + [0x84] = "\xE0\x6B\xE0\xF0\x6B", + [0x85] = "\xE0\x74\xE0\xF0\x74" }; const unsigned char convert_table[] = {