aboutsummaryrefslogtreecommitdiff
path: root/kernel/io/keyboard/scancode_map.h
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2019-05-25 20:11:52 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2019-05-25 20:11:52 +0100
commit506f1691f1ca7b562d82ab6f2280b87d0e4af84c (patch)
treebdb403c000cd15ab29cbce8b3bcec5077d6f9655 /kernel/io/keyboard/scancode_map.h
parentc1d948ce1973d9be37a43718f548776a0061807b (diff)
downloadtinyOS-506f1691f1ca7b562d82ab6f2280b87d0e4af84c.tar.xz
tinyOS-506f1691f1ca7b562d82ab6f2280b87d0e4af84c.zip
Add keyboard support
Diffstat (limited to 'kernel/io/keyboard/scancode_map.h')
-rw-r--r--kernel/io/keyboard/scancode_map.h93
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