Mouse

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
SystemHalted

Mouse

Post by SystemHalted »

What ports do I have to read/write to to enable the mouse, and what ports do I have to read from to get the mouse information. And is there a difference between the ports in a serial mouse and a PS/2 Mouse?

thanks

SystemHalted
Jamethiel

RE:Mouse

Post by Jamethiel »

For a PS/2 mouse, you need to read/write to/from the keyboard ports.

For a serial mouse, you need to read/write to/from the com port ports.

For further information, hit up google.
Ramanan

RE:Mouse

Post by Ramanan »

refer this message :
http://www.osdev.org/board.jsp?message=4843
http://www.osdev.org/board.jsp?message=4896
It contains very detail explanation & simple example code for PS/2 mouse. (Thanks to gaffi)

For futher detail like PS/2 3D mouse, 5 button mouse refer this link
http://panda.cs.ndsu.nodak.edu/%7Eachap ... mouse.html

Actually PS/2 mouse u have to send the commands to PS/2 keyboard port ie. 0x60.
and status u got to check on 0x64 port.
To send command to mouse u have to write first 0xD4 byte to the keyboard port and then write the mouse command or parameter to the same keyboard port. Whetever the byte written after 0xD4 will be send to the mouse from keyboard.


rgds
YogaRamanan.T
Post Reply