From ff9c7766edded74f4d522484c828b1bdc7dfa96d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 9 Jan 2021 23:31:28 +0100 Subject: Let's make a procfs for IPC instead --- kernel/drivers/keyboard.c | 3 +-- kernel/drivers/mouse.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'kernel/drivers') diff --git a/kernel/drivers/keyboard.c b/kernel/drivers/keyboard.c index ac97d36..7f3247f 100644 --- a/kernel/drivers/keyboard.c +++ b/kernel/drivers/keyboard.c @@ -2,7 +2,6 @@ #include #include -#include #include #include #include @@ -34,7 +33,7 @@ void keyboard_handler() event->magic = KEYBOARD_MAGIC; event->press = (scancode & 0x80) == 0; event->scancode = event->press ? scancode : scancode & ~0x80; - event_trigger(EVENT_KEYBOARD, event); + //event_trigger(EVENT_KEYBOARD, event); state = 0; merged = 0; diff --git a/kernel/drivers/mouse.c b/kernel/drivers/mouse.c index d58fbfc..f70fb6a 100644 --- a/kernel/drivers/mouse.c +++ b/kernel/drivers/mouse.c @@ -2,7 +2,6 @@ #include #include -#include #include #include #include @@ -39,7 +38,7 @@ void mouse_handler() event->but1 = mouse_byte[0] & 1; event->but2 = (mouse_byte[0] >> 1) & 1; event->but3 = (mouse_byte[0] >> 2) & 1; - event_trigger(EVENT_MOUSE, event); + //event_trigger(EVENT_MOUSE, event); mouse_cycle = 0; break; -- cgit v1.2.3