This would be _much_ easier with a serial mouse than PS2. A serial mouse just generates a continuous stream of 3 byte reports. I have built a device, which I called the NOMOUSE. It simply generated a continuous stream of mouse position reports in the form: do forever: X+8, Y+8 Y-8, Y-8 end do This device was then hooked to the serial mouse port of a KVM (keyboard-video-mouse) switch. Thus, the 8 computers that were connected to the KVM switch could tell when the KVM was 'watching' them because they would see the mouse action. When the KVM was not watching them they would see no mouse activity. If you want to try this with a serial mouse protocol instead of PS2 I'd be glad to help. You could email me off list. Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: "Matthieu Baraban" To: Sent: Thursday, May 17, 2001 8:39 AM Subject: [PIC]: Simulating clicks of a mouse > Hello all, > > I would like to build an interface between a mouse and a PC, using a > PIC16F84, that could "simulate" clicks of the mouse (for an handicapped > person) > My goal is to have a box with 2 big buttons, between the mouse and the PC. > ---- --------- > | PC | | Buttons | ------- > | |-------| O O |----------- Mouse | > | | | | ------- > ---- --------- > > The bus used is the PS/2 bus. > I would like to know if code (or part of code) exists. > The problem for me is that I have to get the previous flow from the mouse (8 > bits -> Y,X,Y sign,X sign,1,Middle Button,Right Button,Left Button) and then > set a button bit, and resend the command. > And, another thing, is that I do not want to hack a mouse for removing its > buttons. > Do anyone have link, ideas, tips etc ? > Thanks a lot, > Best regards, > > Matthieu. > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads