Page 1 of 1

How to use a mouse in my os??

Posted: Mon Jun 03, 2002 11:00 pm
by MI-7
I am building an GUI for my os,
but for so far i can't use a mouse.  :(

I heared that te mouse transmits at 1200 baud two bytes with all the data.
So have tried to scan my serial port for any mouse activity,
but no succes :(
my program language = assembler     (nasm)

Has anyone an idea of how to use a serial mouse?

u can mail me at [email protected]

RE:How to use a mouse in my os??

Posted: Mon Jun 03, 2002 11:00 pm
by Schol-R-LEA
Once again, the OSRC comes to the rescue.

http://www.nondot.org/sabre/os/articles ... onDevices/ - articles on controlling the serial, parallel and USB ports

http://www.nondot.org/sabre/os/articles ... ceDevices/ - mouse and keyboard driver info

You may also want to refer to:

Cute Mouse (open source DOS mouse driver) - http://sourceforge.net/projects/cutemouse/

Alan Cox's Linux mouse driver tutorial - http://kernelnewbies.org/documents/kdoc ... guide.html
(specific to Linux, but potentially useful)

The Mouse Alternative Project (discusses alternative pointing devices that are software-compatible with mice; covers asynchronous mouse programming for comparison)- http://www.doc.ic.ac.uk/~ih/teaching/al ... oject.html

Beyond Logic - http://www.beyondlogic.org/

Programmer's Heaven - http://www.programmersheaven.com/ (I didn't find much there, though)

http://www.hut.fi/~then/mytexts/mouse.html

http://panda.cs.ndsu.nodak.edu/~achapwe ... mouse.html

Unfortunately, I cannot help more myself, as my own work has not yet progressed to that point. HTH, despite this.