aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/keyboard.c')
-rw-r--r--kernel/drivers/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/keyboard.c b/kernel/drivers/keyboard.c
index 16809b6..6405018 100644
--- a/kernel/drivers/keyboard.c
+++ b/kernel/drivers/keyboard.c
@@ -2,11 +2,11 @@
#include <cpu.h>
#include <def.h>
+#include <event.h>
#include <interrupts.h>
char keymap[128];
-// TODO: Use keyboard as event and move logic to other file
void keyboard_handler()
{
u8 scan_code = inb(0x60);
@@ -15,7 +15,7 @@ void keyboard_handler()
return;
if ((scan_code & 0x80) == 0) { // PRESS
- /* gui_term_write_char(keymap[scan_code]); */
+ event_trigger(EVENT_KEYBOARD, NULL);
}
}