dud@twitch.UUCP ( W.F.Dudley) (09/22/86)
I recently picked up a real nice surplus trackball. I want to make it look like a serial mouse if possible. I figure I can dead-bug a uart inside to send characters for the four directions and the two buttons. However, I need to know what the Microsoft Serial Mouse puts out. What baud rate, stop bits, parity, bits per character, and of course, what characters does it send? Of course, mail replys to: ihnp4!twitch!dud thanks Bill Dudley @ AT&T Bell Labs: 201 949 2828
phco@ecsvax.UUCP (John Miller) (09/29/86)
In article <411@twitch.UUCP> dud@twitch.UUCP ( W.F.Dudley) writes: >I need to know what the Microsoft Serial Mouse puts out. >What baud rate, stop bits, parity, bits per character, >and of course, what characters does it send? The Microsoft and Mouse Systems Mice have the following RS-232C settings: 1200 baud, 8 data bits, 1 stop bit, no parity The Mouse Systems Mouse is a superset of the Microsoft Mouse, since it has 3 buttons instead of 2. The 3 button mouse sends data in five- byte blocks whenever a change of state occurs (i.e., when the mouse moves or a button is pressed or released). The data format is as follows: 1st byte (syncbyte): Upper five bits are 10000. Lower three bits give the button states (0 = depressed). Next four bytes are 2's-complement signed 8-bit binary numbers. Positive is to the right and up. The 2nd and 4th bytes report changes in the x, or horizontal, direction, and the 3rd and 5th bytes report changes in the y, or vertical, direction. The resolution is 100/inch. -- John Miller (ecsvax!phco) Dept. of Pharmacology, Univ. of N.C.-Chapel Hill Chapel Hill, NC 27514 (919) 966-4628