Need mouse info

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
B.E

Need mouse info

Post by B.E »

How do you read the mouse pakcets from the mouse port. I know that there is an BIOS interrupt but I want to know how it is done for interrest
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Need mouse info

Post by Candy »

B.E wrote: How do you read the mouse pakcets from the mouse port. I know that there is an BIOS interrupt but I want to know how it is done for interrest
There is no spoon... eh, BIOS interrupt for mouse port in general. There is, I've heard, one for the PS2 mouse port On 50-60% of the computers there is no mouse there, however, there is a mouse. You might want to read up on different types first:

- Serial mice: Use a serial port. Make a serial port driver and try to interpret the packets.
- PS2 mice: Use a specific mouse port. Use the keyboard port and in that the aux device. Try to interpret the packets, well described everywhere.
- USB mice: Use a generic USB host driver, then a USB mouse driver and then something to interpret the packets. Packets are described using an interface descriptor, make a parser to decode it and use it for decoding the packets. Very generic, can connect almost anything to the usb port.
- Bus mice: Awkward things. They connect to a this-mouse-only connector on the back and usually have proprietary protocols. Not much used anymore, but are still around.

Only after knowing at least this list can you hope to identify prevalent mouse types. Second point is, only one of them has a default BIOS entry point, and that's the one that's easiest to program.

Search the FAQ for information on PS2, Serial stuff and USB, search book references and search google on things like PS2 mouse protocol etc.

Grtz, Candy
Post Reply