]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - include/arch/x86/input/ps2.h
Add number keys to PS/2 driver
[nameless-os.git] / include / arch / x86 / input / ps2.h
index 8b90a73e5de11b96a4c000bfad5ca6128665984c..eb74502911e3280881234c16faaa42b226bcc7bd 100644 (file)
@@ -81,12 +81,27 @@ static const char scancodes[] = {
        [0x31] = 'n',
        [0x3a] = 'm',
 
+       /* numbers */
+       [0x45] = '0',
+       [0x16] = '1',
+       [0x1e] = '2',
+       [0x26] = '3',
+       [0x25] = '4',
+       [0x2e] = '5',
+       [0x36] = '6',
+       [0x3d] = '7',
+       [0x3e] = '8',
+       [0x46] = '9',
+
        /* special */
-       [0x29] = ' '
+       [0x29] = ' ',
+       [0x5a] = '\n',
+       [0x66] = 0x7f /* backspace */
 };
 
 extern int ps2_initialize();
 extern void ps2_input_wait();
 extern void ps2_output_wait();
+extern char ps2_get_keystroke();
 
 #endif