A simple program that parses the signal from a Logitech M-M35 3-button serial mouse.
Since the packets have 3 (Microsoft Standard) or 4 (Logitech 3-button extension) bytes, i can only "finish" a packet when the first byte of a new packet (X1XXXXXX) is sent. Feel free to suggest another method for parsing the data.