From 765559cab48a27be66f40f1b081c79fe32bee8c7 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 10 Nov 2019 22:05:44 +0100 Subject: Fixed some strange bugs and reimplemented mode detection --- src/kernel/input/ps2/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/kernel/input/ps2/keyboard.c') diff --git a/src/kernel/input/ps2/keyboard.c b/src/kernel/input/ps2/keyboard.c index e7f789a..2a093e5 100644 --- a/src/kernel/input/ps2/keyboard.c +++ b/src/kernel/input/ps2/keyboard.c @@ -2,7 +2,7 @@ #include #include -int shift_pressed = 0; +int shift_pressed; char keymap[128] = { 0 /*E*/, 27, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', '\b', @@ -101,5 +101,6 @@ void keyboard_rate() { void keyboard_install() { keyboard_rate(); irq_install_handler(1, keyboard_handler); + shift_pressed = 0; info("Installed keyboard handler"); } -- cgit v1.2.3