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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user