I've implemented a quick and dirty fix: setup the correct icw values on the slave PIC, when the CPU initialises the master (port 20h/21h) to single PIC mode and it's emulating a 80186/8086 (which in my system always uses a XT BIOS, which shouldn't touch the second PIC). The verification of the master-Slave IR lines and base interrupt vector then works using the default hardcoded settings (unless the BIOS overwrites it by programming the second PIC by sending the ICWs to the slave after the master(20/21h) is set up (after the respective master ICW is sent (which sets my default value in the slave), the slave ICW sent overwrites this value if the BIOS supports the second PIC, thus giving compatibility to both XT and AT BIOS. After the ICW 4 is sent/skipped, the emulator forces the master/slave bit in ICW 1 set to support the second PIC.
I notice that the custom driver seems to detect the mouse (it sends a command to start scanning to the mouse. The result bytes are also read from the 8042 controller, as do the packet bytes sent during mouse movement or button presses). The only thing I notice is that after the mouse is set up, the PS/2 keyboard stops working for some reason? (Scanning turned off or mouse input is overruling keyboard input (shouldn't be, since the 8042 prioritizes keyboard over mouse input when loading from the PS/2 mouse&keyboard to it's output buffer (setting the output status flag bit 0 and 5(Depending on mouse or keyboard byte), and raising an IRQ1(keyboard) or IRQ12(mouse) (the IRQ one not in the buffer is lowered). This process is called again when port 60h/64h is read and the output buffer is empty. This is done to support either the same IRQ routine to read more input, or letting it finish, after which the set IRQ1/12 line raises the next interrupt handler to read the next byte buffered (until there's nothing left in the keyboard/mouse buffers.