diff options
author | Marvin Borner | 2020-08-16 17:13:32 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-16 17:13:32 +0200 |
commit | 0dd3f5e6f4f7607611ce23510858ab3597b5df9f (patch) | |
tree | 19fa08636168489fa097dea675ef38a27d913d4d /kernel/drivers | |
parent | 36e36fae364dec02999f58edbe997780d901b674 (diff) |
Added events and map syscall
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/keyboard.c | 4 |
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); } } |