diff options
author | Marvin Borner | 2019-11-10 22:05:44 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-10 22:05:44 +0100 |
commit | 765559cab48a27be66f40f1b081c79fe32bee8c7 (patch) | |
tree | 389bdb54407f622de81636b1358617e5ecdbdddb /src/kernel/input | |
parent | 7e06dfe06a0f7847eed105bc4f7ccb22df5228fc (diff) |
Fixed some strange bugs and reimplemented mode detection
Diffstat (limited to 'src/kernel/input')
-rw-r--r-- | src/kernel/input/ps2/keyboard.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <kernel/io/io.h> #include <kernel/graphics/vesa.h> -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"); } |