]> Joshua Wise's Git repositories - netwatch.git/blobdiff - aseg-paging/main.c
Merge nyus.joshuawise.com:/storage/git/netwatch
[netwatch.git] / aseg-paging / main.c
index 555a6a19f694b60618b18f389a9a11bf2514d4b0..d41e8c2c09a7c7754142ae0601798dcf7b81445c 100644 (file)
@@ -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;
        }
This page took 0.026943 seconds and 4 git commands to generate.