diff options
Diffstat (limited to 'src/kernel/input/ps2/keyboard.c')
-rw-r--r-- | src/kernel/input/ps2/keyboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/input/ps2/keyboard.c b/src/kernel/input/ps2/keyboard.c index dceba05..41ab1bb 100644 --- a/src/kernel/input/ps2/keyboard.c +++ b/src/kernel/input/ps2/keyboard.c @@ -1,3 +1,5 @@ +#include <common.h> +#include <events/event.h> #include <interrupts/interrupts.h> #include <io/io.h> #include <graphics/vesa.h> @@ -10,6 +12,9 @@ u8 scancode; void keyboard_handler(struct regs *r) { scancode = inb(0x60); + struct keyboard_event *event = umalloc(sizeof(struct keyboard_event)); + event->scancode = scancode; + event_trigger(MAP_KEYBOARD, (u8 *)event); } void keyboard_acknowledge() |