Article View: alt.msdos.programmer
Article #581Re: Finding the mouse
From: Jerzy Tarasiuk
Date: Wed, 07 Oct 1992 18:18
Date: Wed, 07 Oct 1992 18:18
17 lines
1604 bytes
1604 bytes
>>>>> On Tue, 6 Oct 1992 21:22:00 GMT, mortenk@dhhalden.no (MORTEN KNUDSEN) said: MK> I'm writing a program that needs to know what port the mouse is MK> connected to. Do anybody know how to do this, or is there a .DOC MK> file that explains direct mouse programming? I couldn't find it MK> in the HELPPC file. Mouse is usually connected to one of serial ports known to BIOS (their addresses are at 0x40:0,2,4,6; I don't know any mouse driver using other port and even if there is any, it must get port address from command line or config file...). And: I don't know if there is any possibility to send command to mouse (if there is a possibility to send command to mouse and get answer, it makes possibility to check where is mouse), the only I tried was to receive what mouse sends and interprete it. But it should be enough: ask user to move the mouse and wait until data received can be detected on any serial port, then assume mouse is there. I took decoding algorithm from some BYTE or other magazine, don't remember but have a program - would you like to look at it ? (it is about 15kB of .ASM source).
Technical Details
Message-ID:
<JT.92Oct7191857@fizyk1.fuw.edu.pl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jtReferences:
<mortenk.25.718406520@dhhalden.no>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!fuw.edu.pl!cocos!jt From: jt@fuw.edu.pl (Jerzy Tarasiuk) Subject: Re: Finding the mouse In-Reply-To: mortenk@dhhalden.no's message of Tue, 6 Oct 1992 21:22:00 GMT Message-ID: <JT.92Oct7191857@fizyk1.fuw.edu.pl> Sender: news@fuw.edu.pl Nntp-Posting-Host: fizyk1 Organization: Warsaw University Physics Dept. References: <mortenk.25.718406520@dhhalden.no> Date: Wed, 7 Oct 1992 18:18:57 GMT Lines: 17