mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
[NTOSKRNL]
Disable mouse when reading from keyboard port. svn path=/trunk/; revision=53853
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user