From 436382a1470a623b08aa1014b14dda8d7bb325b4 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 16 Apr 2023 17:46:09 +0200 Subject: [PATCH] The BAT enables scanning. --- src/device/keyboard_at.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/device/keyboard_at.c b/src/device/keyboard_at.c index 0e6898f27..3a841ad91 100644 --- a/src/device/keyboard_at.c +++ b/src/device/keyboard_at.c @@ -2181,7 +2181,8 @@ kbd_key_reset(atkbd_t *dev, int do_fa) keyboard_mode = 0x02; set_scancode_map(dev); - keyboard_scan = 0; + /* The BAT enables scanning. */ + keyboard_scan = 1; dev->sc_or = 0; @@ -2199,7 +2200,8 @@ kbd_aux_reset(atkbd_t *dev, int do_fa) dev->out_new_mouse = -1; kbc_queue_reset(dev, 2); - mouse_scan = 0; + /* The BAT enables scanning. */ + mouse_scan = 1; if (!do_fa) { add_data_kbd_front(dev, 0xaa);