Make int16 read from the BIOS keyboard buffer, not directly from the

console driver.
This commit is contained in:
Ove Kaaven 2000-07-25 12:24:53 +00:00 committed by Alexandre Julliard
parent 0e823c56c3
commit e58bd1bae6

View File

@ -8,7 +8,7 @@
#include "config.h" #include "config.h"
#include "module.h" #include "module.h"
#include "console.h" #include "dosexe.h"
#include "wincon.h" #include "wincon.h"
#include "debugtools.h" #include "debugtools.h"
#include "windef.h" #include "windef.h"
@ -37,7 +37,7 @@ void WINAPI INT_Int16Handler( CONTEXT86 *context )
/* Returns: AH = Scan code /* Returns: AH = Scan code
AL = ASCII character */ AL = ASCII character */
TRACE("Get Keystroke\n"); TRACE("Get Keystroke\n");
CONSOLE_GetKeystroke(&AH_reg(context), &AL_reg(context)); INT_Int16ReadChar(&AL_reg(context), &AH_reg(context), FALSE);
break; break;
case 0x01: /* Check for Keystroke */ case 0x01: /* Check for Keystroke */
@ -45,7 +45,7 @@ void WINAPI INT_Int16Handler( CONTEXT86 *context )
/* AH = Scan code */ /* AH = Scan code */
/* AL = ASCII character */ /* AL = ASCII character */
TRACE("Check for Keystroke\n"); TRACE("Check for Keystroke\n");
if (!CONSOLE_CheckForKeystroke(&AH_reg(context), &AL_reg(context))) if (!INT_Int16ReadChar(&AL_reg(context), &AH_reg(context), TRUE))
{ {
SET_ZFLAG(context); SET_ZFLAG(context);
} }
@ -95,7 +95,7 @@ void WINAPI INT_Int16Handler( CONTEXT86 *context )
TRACE("Get Enhanced Keystroke - Partially supported\n"); TRACE("Get Enhanced Keystroke - Partially supported\n");
/* Returns: AH = Scan code /* Returns: AH = Scan code
AL = ASCII character */ AL = ASCII character */
CONSOLE_GetKeystroke(&AH_reg(context), &AL_reg(context)); INT_Int16ReadChar(&AL_reg(context), &AH_reg(context), FALSE);
break; break;
@ -104,7 +104,7 @@ void WINAPI INT_Int16Handler( CONTEXT86 *context )
/* AH = Scan code */ /* AH = Scan code */
/* AL = ASCII character */ /* AL = ASCII character */
TRACE("Check for Enhanced Keystroke - Partially supported\n"); TRACE("Check for Enhanced Keystroke - Partially supported\n");
if (!CONSOLE_CheckForKeystroke(&AH_reg(context), &AL_reg(context))) if (!INT_Int16ReadChar(&AL_reg(context), &AH_reg(context), TRUE))
{ {
SET_ZFLAG(context); SET_ZFLAG(context);
} }