mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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));
|
*(KdpPromptString.Buffer + i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
|
||||||
|
KbdDisableMouse();
|
||||||
|
|
||||||
/* Loop the whole string */
|
/* Loop the whole string */
|
||||||
for (i = 0; i < OutStringLength; i++)
|
for (i = 0; i < OutStringLength; i++)
|
||||||
{
|
{
|
||||||
|
@ -3556,6 +3559,9 @@ KdpPrompt(IN LPSTR InString,
|
||||||
KdPortPutByteEx(&SerialPortInfo, Response);
|
KdPortPutByteEx(&SerialPortInfo, Response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(KdbDebugState & KD_DEBUG_KDSERIAL))
|
||||||
|
KbdEnableMouse();
|
||||||
|
|
||||||
/* Print a new line */
|
/* Print a new line */
|
||||||
KdPortPutByteEx(&SerialPortInfo, '\r');
|
KdPortPutByteEx(&SerialPortInfo, '\r');
|
||||||
KdPortPutByteEx(&SerialPortInfo, '\n');
|
KdPortPutByteEx(&SerialPortInfo, '\n');
|
||||||
|
|
|
@ -93,13 +93,11 @@ KbdSendCommandToMouse(UCHAR Command)
|
||||||
VOID KbdEnableMouse()
|
VOID KbdEnableMouse()
|
||||||
{
|
{
|
||||||
KbdSendCommandToMouse(MOU_ENAB);
|
KbdSendCommandToMouse(MOU_ENAB);
|
||||||
// kbd_write_command(KBD_ENABLE_MOUSE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID KbdDisableMouse()
|
VOID KbdDisableMouse()
|
||||||
{
|
{
|
||||||
KbdSendCommandToMouse(MOU_DISAB);
|
KbdSendCommandToMouse(MOU_DISAB);
|
||||||
// kbd_write_command(KBD_DISABLE_MOUSE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CHAR
|
CHAR
|
||||||
|
|
Loading…
Reference in a new issue