[NTOSKRNL]

Disable mouse when reading from keyboard port.

svn path=/trunk/; revision=53853
This commit is contained in:
Dmitry Gorbachev 2011-09-25 16:02:14 +00:00
parent e66ae73d2b
commit 5be9321dae
2 changed files with 6 additions and 2 deletions

View file

@ -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');

View file

@ -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