Universalize the keyboard and mouse latches again, fixes #3280.

This commit is contained in:
OBattler
2023-05-01 01:35:16 +02:00
parent 125315ee61
commit 8fca57aa79
13 changed files with 11 additions and 65 deletions

View File

@@ -570,8 +570,16 @@ pic_reset_hard(void)
{
pic_reset();
pic_kbd_latch(0x00);
pic_mouse_latch(0x00);
/* The situation is as follows: There is a giant mess when it comes to these latches on real hardware,
to the point that there's even boards with board-level latched that get used in place of the latches
on the chipset, therefore, I'm just doing this here for the sake of simplicity. */
if (machine_has_bus(machine, MACHINE_BUS_PS2)) {
pic_kbd_latch(0x01);
pic_mouse_latch(0x01);
} else {
pic_kbd_latch(0x00);
pic_mouse_latch(0x00);
}
}
void