From: Joshua Wise Date: Fri, 12 Dec 2008 22:37:12 +0000 (-0500) Subject: Merge nyus.joshuawise.com:/storage/git/netwatch X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/027878d84624c28b91589ab8550cd652055caece?hp=-c Merge nyus.joshuawise.com:/storage/git/netwatch --- 027878d84624c28b91589ab8550cd652055caece diff --combined aseg-paging/main.c index 1bc502e,d8fecdd..d41e8c2 --- a/aseg-paging/main.c +++ b/aseg-paging/main.c @@@ -9,7 -9,7 +9,7 @@@ #include "../net/net.h" #include "vga-overlay.h" #include "../aseg/packet.h" - #include "../aseg/keyboard.h" + #include "keyboard.h" unsigned int lastctr = 0; extern unsigned int counter; @@@ -107,8 -107,7 +107,8 @@@ void timer_handler(smi_event_t ev while (inb(0x64) & 0x02) /* wait for completion */ ; smi_enable_event(SMI_EVENT_DEVTRAP_KBC); - } + } else if (kbd_has_injected_scancode()) + outputf("Would like to inject, but %d %d", _ibf_ready, _waiting_for_data); outb(0x80, (ticks++) & 0xFF); @@@ -140,7 -139,8 +140,8 @@@ void gbl_rls_handler(smi_event_t ev dump_log((char *)packet->data); *(unsigned long*)0xAFFD4 = 42; } else if (packet->type == 0xAA) { - kbd_inject_key('A'); + kbd_inject_keysym('A', 1); + kbd_inject_keysym('A', 0); } else { *(unsigned long*)0xAFFD4 = 0x2BADD00D; }