From 7d277c43a9ab8b10517280e5e9028323ac0f7121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 18 Jul 2015 00:48:38 +0000 Subject: [PATCH] [NTVDM] We don't support any PS/2 keyboard command for now. Just return ACKnowledge. This unblocks some programs that want to initialize the keyboard by sending keyboard commands and then performing polling on the port until "valid" data comes out. (unblocks e.g. DOS Mugen game, amongst others...). svn path=/trunk/; revision=68415 --- reactos/subsystems/mvdm/ntvdm/hardware/keyboard.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/mvdm/ntvdm/hardware/keyboard.c b/reactos/subsystems/mvdm/ntvdm/hardware/keyboard.c index 9fcc9f0c186..ac17986894f 100644 --- a/reactos/subsystems/mvdm/ntvdm/hardware/keyboard.c +++ b/reactos/subsystems/mvdm/ntvdm/hardware/keyboard.c @@ -22,7 +22,13 @@ static BYTE PS2Port = 0; static VOID WINAPI KeyboardCommand(LPVOID Param, BYTE Command) { - UNIMPLEMENTED; + // FIXME: UNIMPLEMENTED; just return ACKnowledge. + // This unblocks some programs that want to initialize + // the keyboard by sending keyboard commands and then + // performing polling on the port until "valid" data + // comes out. + DPRINT1("KeyboardCommand(0x%02X) NOT IMPLEMENTED\n", Command); + PS2QueuePush(PS2Port, 0xFA); } /* PUBLIC FUNCTIONS ***********************************************************/