Merge pull request #3098 from jgilje/stream_mode

add command 0xea - set stream mode
This commit is contained in:
Miran Grča
2023-02-09 02:54:01 +01:00
committed by GitHub

View File

@@ -191,6 +191,12 @@ ps2_write(uint8_t val, void *priv)
keyboard_at_adddata_mouse(dev->sample_rate);
break;
case 0xea: /* set stream */
dev->flags &= ~FLAG_CTRLDAT;
mouse_scan = 1;
keyboard_at_adddata_mouse(0xfa); /* ACK for command byte */
break;
case 0xeb: /* Get mouse data */
keyboard_at_adddata_mouse(0xfa);