Some keyboard-related special casing for the PC5086, so the keyboard is locked to PC/XT but PS/2 mouse remains usable.

This commit is contained in:
OBattler
2025-08-03 00:40:14 +02:00
parent 2f7d0ea25e
commit 8222bd1dba
3 changed files with 11 additions and 5 deletions

View File

@@ -18374,8 +18374,9 @@ machine_has_bus(int m, int bus_flags)
/* TODO: Move the KBD flags to the machine table! */
if ((bus_flags & MACHINE_BUS_XT_KBD) &&
!(machines[m].bus_flags & MACHINE_BUS_ISA16) &&
!(machines[m].bus_flags & MACHINE_BUS_PS2_PORTS))
ret |= MACHINE_BUS_XT_KBD;
(!(machines[m].bus_flags & MACHINE_BUS_PS2_PORTS) ||
!(strcmp(machine_get_internal_name(), "pc5086"))))
ret |= MACHINE_BUS_XT_KBD;
#ifdef ONLY_AT_KBD_ON_AT_KBC
if ((bus_flags & MACHINE_BUS_AT_KBD) &&