Okay wow i forgot to commit a bunch of stuff

I added some work on a keyboard driver here
also changed the emulation system, since bochs was giving me headaches when it came to keyboard input
added some todo stuff.. probably some cleanup, idk
This commit is contained in:
2025-06-03 19:08:45 -04:00
parent ca77157344
commit af92026a74
11 changed files with 160 additions and 156 deletions

View File

@ -27,18 +27,10 @@ void exception_handler(unsigned int i)
}
if (i == PIC_KEYB) {
#ifdef __TESTING__
//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);
/**
* TODO: this is a cute temporary fix but lets do a real keyboard driver please?
*/
#ifdef __TESTING__
printf("scancode: %x\n", in);
#endif
PIC_sendEOI(1);
}