Rewrite of AT keyboard controller polling.

This commit is contained in:
OBattler
2020-08-04 04:01:54 +02:00
parent 4fe66cdd38
commit 949e145be3
4 changed files with 172 additions and 91 deletions

View File

@@ -886,6 +886,8 @@ piix_read(int func, int addr, void *priv)
if ((func <= dev->max_func) || ((func == 1) && (dev->max_func == 0))) {
fregs = (uint8_t *) dev->regs[func];
ret = fregs[addr];
if ((func == 0) && (addr == 0x4e))
ret |= keyboard_at_get_mouse_scan();
piix_log("PIIX function %i read: %02X from %02X\n", func, ret, addr);
}