rasteri / HIDman

Adapting USB devices to work on old computers
283 stars 21 forks source link

Better Serial Mouse Detection #9

Closed serisman closed 8 months ago

serisman commented 1 year ago

This code seems to follow the serial mouse protocols I found a little better, and doesn't need to spam the 'M' like the previous code.

This has been tested with the CuteMouse driver (CTMOUSE.EXE) and seems work work pretty good. I have not (yet) tested it with any other mouse drivers.

I also optimized the timer0 interrupt code a bit, and fixed a bug with setting the U1_FIFO_TRIG bits for uart1.