Committed the PS/2 mouse code I forgot to commit last night.

This commit is contained in:
OBattler
2020-08-04 15:56:38 +02:00
parent 5154bc72d5
commit 8d7ed9ca24

View File

@@ -179,17 +179,20 @@ ps2_write(uint8_t val, void *priv)
case 0xf4: /* enable */
dev->flags |= FLAG_ENABLED;
mouse_scan = 1;
keyboard_at_adddata_mouse(0xfa);
break;
case 0xf5: /* disable */
dev->flags &= ~FLAG_ENABLED;
mouse_scan = 0;
keyboard_at_adddata_mouse(0xfa);
break;
case 0xff: /* reset */
dev->mode = MODE_STREAM;
dev->flags &= 0x88;
mouse_scan = 0;
keyboard_at_mouse_reset();
keyboard_at_adddata_mouse(0xfa);
keyboard_at_adddata_mouse(0xaa);