X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/5d4677410e2c1d9973ceb085294c1d3573a89c10..027878d84624c28b91589ab8550cd652055caece:/aseg-paging/main.c?ds=inline diff --git a/aseg-paging/main.c b/aseg-paging/main.c index 555a6a1..d41e8c2 100644 --- a/aseg-paging/main.c +++ b/aseg-paging/main.c @@ -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,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); @@ -139,7 +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; }