diff options
Diffstat (limited to 'kernel/io/keyboard/scancode_map.h')
| -rw-r--r-- | kernel/io/keyboard/scancode_map.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/kernel/io/keyboard/scancode_map.h b/kernel/io/keyboard/scancode_map.h new file mode 100644 index 0000000..e48a1f6 --- /dev/null +++ b/kernel/io/keyboard/scancode_map.h @@ -0,0 +1,93 @@ +char scancode_map[128] = +{ + 0xFF, // Keyboard error code + 0, // Esc + '1', + '2', + '3', + '4', + '5', + '6', + '7', + '8', + '9', + '0', + '-', + '=', + '\b', // Backspace + '\t', // Tab + 'q', + 'w', + 'e', + 'r', + 't', + 'y', + 'u', + 'i', + 'o', + 'p', + '[', + ']', + '\n', // Enter + 0, // Ctrl + 'a', + 's', + 'd', + 'f', + 'g', + 'h', + 'j', + 'k', + 'l', + ';', + '\'', + '`', + 0, // Left Shift + '\\', + 'z', + 'x', + 'c', + 'v', + 'b', + 'n', + 'm', + ',', + '.', + '/', + 0, // Right shift + '*', + 0, // Alt + ' ', // Space + 0, // Caps + 0, // F1 ... + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, // F10 + 0, // Numlock + 0, // Scroll lock + 0, // Home + 0, // Up + 0, // PgUp + '-', + 0, // Left + 0, // Numpad 5 + 0, // Right + '+', + 0, // End + 0, // Down + 0, // PgDown + 0, // Ins + 0, // Del + 0, // Alt-Sysrq + 0, // n/a + 0, // n/a + 0, // F11 + 0, // F12 + 0, // Others are undefined +};
\ No newline at end of file |