serial programming: mouse

Status
Not open for further replies.

esposj

Ars Tribunus Militum
2,983
good evening,

I am working on writing a serial mouse driver for a motorola 6812. All the research that I have done shows the mouse using a 3 byte protocol. I seem to only be receiving 2 bytes per action, button press,depress etc.

Has anyone ever heard of a 2 byte mouse protocol.

Btw I am using 2 different logitech serial mice. I am going to pick up an old microsoft serial mouse tommorow.

thanks for any input,
Joe
 

esposj

Ars Tribunus Militum
2,983
I realize that they do use a different protocol - but everything that I have read show it to be a 3 byte protocol..something like this

code:<HR>
Code:
  7  6  5  4  3  2  1  0 
1 x  1  lb rb l7 l6 r7 r6
2 x  0  l5 l4 l3 l2 l1 l0
3 x  0  r5 r4 r3 r2 r1 r0<P>

I may have the left and the rights confused, but thats the basic protocol.. I'm gonna pick up an old microsoft serial mouse tonight.

Joe
 
Status
Not open for further replies.