Figure 1—Each packet sent using the Microsoft serial mouse protocol has this format. L, R, and M are the status of the buttons. The 8-bit Y and X represent the change in mouse position from the time of the previous packet.