From 0f2cb26064bbb831550dd4c9f72bb5a462250fb4 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Sat, 29 Mar 2003 10:28:20 +0000 Subject: [PATCH] Fixed keyboard data in buffer bit. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@833 --- src/hardware/keyboard.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hardware/keyboard.cpp b/src/hardware/keyboard.cpp index 7c4e927d..b0f053c9 100644 --- a/src/hardware/keyboard.cpp +++ b/src/hardware/keyboard.cpp @@ -64,7 +64,6 @@ struct KeyBlock { bool enabled; bool active; bool scheduled; - bool read_active; }; static KeyBlock keyb; @@ -76,7 +75,6 @@ static KeyEvent * event_handlers[KBD_LAST]; void KEYBOARD_ClrBuffer(void) { keyb.buf.used=0; keyb.buf.pos=0; - keyb.read_active=false; keyb.scheduled=false; PIC_DeActivateIRQ(1); } @@ -225,7 +223,7 @@ static void write_p64(Bit32u port,Bit8u val) { } static Bit8u read_p64(Bit32u port) { - return 0x1c | (keyb.read_active ? 0x1 : 0x0); + return 0x1c | (keyb.buf.used ? 0x1 : 0x0); } void KEYBOARD_AddEvent(Bitu keytype,Bitu state,KEYBOARD_EventHandler * handler) {