From c742be9c738c91703a7be787639cad167de3a6b1 Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 17 Aug 2018 02:28:02 +0200 Subject: started reviving my fool os --- driver/keyboard.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'driver/keyboard.c') diff --git a/driver/keyboard.c b/driver/keyboard.c index e4a13dc..f2a44ec 100644 --- a/driver/keyboard.c +++ b/driver/keyboard.c @@ -1,12 +1,10 @@ -#include +/// idiots keyboard driver //// +// http://www.computer-engineering.org/ps2keyboard/scancodes1.html #define FOOLOS_MODULE_NAME "keyboard" - +#include #include "kernel/x86.h" -/// idiots keyboard driver //// -// http://www.computer-engineering.org/ps2keyboard/scancodes1.html - static bool ctrl_l=false; static bool shift_l=false; static bool shift_r=false; @@ -95,10 +93,6 @@ void keyboard_handle(uint8_t in) }; - - - - uint8_t break_key_enter=0x9c; uint8_t break_key_space=0xb9; uint8_t break_key_backspace=0x8e; @@ -228,7 +222,6 @@ void keyboard_handle(uint8_t in) break; } } - if(match) { -- cgit v1.2.3