mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[NTOSKRNL]
Disable mouse when reading from keyboard port. svn path=/trunk/; revision=53853
This commit is contained in:
parent
e66ae73d2b
commit
5be9321dae
2 changed files with 6 additions and 2 deletions
|
@ -3489,6 +3489,9 @@ KdpPrompt(IN LPSTR InString,
|
|||
*(KdpPromptString.Buffer + i));
|
||||
}
|
||||
|
||||
if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
|
||||
KbdDisableMouse();
|
||||
|
||||
/* Loop the whole string */
|
||||
for (i = 0; i < OutStringLength; i++)
|
||||
{
|
||||
|
@ -3556,6 +3559,9 @@ KdpPrompt(IN LPSTR InString,
|
|||
KdPortPutByteEx(&SerialPortInfo, Response);
|
||||
}
|
||||
|
||||
if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
|
||||
KbdEnableMouse();
|
||||
|
||||
/* Print a new line */
|
||||
KdPortPutByteEx(&SerialPortInfo, '\r');
|
||||
KdPortPutByteEx(&SerialPortInfo, '\n');
|
||||
|
|
|
@ -93,13 +93,11 @@ KbdSendCommandToMouse(UCHAR Command)
|
|||
VOID KbdEnableMouse()
|
||||
{
|
||||
KbdSendCommandToMouse(MOU_ENAB);
|
||||
// kbd_write_command(KBD_ENABLE_MOUSE);
|
||||
}
|
||||
|
||||
VOID KbdDisableMouse()
|
||||
{
|
||||
KbdSendCommandToMouse(MOU_DISAB);
|
||||
// kbd_write_command(KBD_DISABLE_MOUSE);
|
||||
}
|
||||
|
||||
CHAR
|
||||
|
|
Loading…
Reference in a new issue