aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/input/ps2
diff options
context:
space:
mode:
authorMarvin Borner2019-11-10 22:05:44 +0100
committerMarvin Borner2019-11-10 22:05:44 +0100
commit765559cab48a27be66f40f1b081c79fe32bee8c7 (patch)
tree389bdb54407f622de81636b1358617e5ecdbdddb /src/kernel/input/ps2
parent7e06dfe06a0f7847eed105bc4f7ccb22df5228fc (diff)
Fixed some strange bugs and reimplemented mode detection
Diffstat (limited to 'src/kernel/input/ps2')
-rw-r--r--src/kernel/input/ps2/keyboard.c3
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");
}