adds a queue library, work for keyb driver

This commit is contained in:
2025-06-02 10:35:57 -04:00
parent 0fc2e6a199
commit ca77157344
5 changed files with 97 additions and 1 deletions

View File

@ -31,6 +31,7 @@ void exception_handler(unsigned int i)
//kinfo("Sending EOI instruction to KEYB");
#endif
unsigned char in = inb(0x60);
char to_print = decode_key_enum(decode_scancode(in));
if (to_print != '\0')
printf("%c", to_print);

View File

@ -1,4 +1,5 @@
#include <stdbool.h>
#include <stdint.h>
#include <kernel/x86/keyb.h>