IRQ_AddHandler(12, KBC8042_MouseHandler, NULL); // Set IRQ
{
- Uint8 temp;
// Attempt to get around a strange bug in Bochs/Qemu by toggling
// the controller on and off
- temp = inb(0x61);
+ Uint8 temp = inb(0x61);
outb(0x61, temp | 0x80);
outb(0x61, temp & 0x7F);
inb(0x60); // Clear keyboard buffer
void KBC8042_KeyboardHandler(int IRQ, void *Ptr)
{
- Uint8 scancode;
-
-// Log("KBC8042_KeyboardHandler: (IRQ=%i, Ptr=%p)", IRQ, Ptr);
-
- scancode = inb(0x60);
+ Uint8 scancode = inb(0x60);
KB_HandleScancode( scancode );
}