🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #586

Re: Finding the mouse

#586
From: Russ Poffenberger
Date: Fri, 09 Oct 1992 19:49
30 lines
2333 bytes
jt@fuw.edu.pl (Jerzy Tarasiuk) writes:
: >>>>> 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).

Well, MS Windows can detect the mouse. The setup doesn't ask where an MS
compatible mouse is, you just tell it that you have one. I am not sure what
the procedure is, but I have a modem on com1, and mouse on com2. When Windows
comes up, a couple lights flash on the modem, I suspect this is the way
it sees if it is a mouse. In fact, moving the mouse while Windows is making
this check will cause windows to NOT think there is a mouse at all.

Russ Poffenberger               DOMAIN: poffen@sj.ate.slb.com
Schlumberger Technologies ATE   UUCP:   {uunet,decwrl,amdahl}!sjsca4!poffen
1601 Technology Drive		CIS:	72401,276
San Jose, Ca. 95110             Voice: (408)437-5254  FAX: (408)437-5246
Technical Details
Message-ID: <1992Oct9.194935.19117@sj.ate.slb.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!sjsca4!rushmore!poffen
References: <JT.92Oct7191857@fizyk1.fuw.edu.pl>

Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!sjsca4!rushmore!poffen
From: poffen@rushmore (Russ Poffenberger)
Subject: Re: Finding the mouse
Message-ID: <1992Oct9.194935.19117@sj.ate.slb.com>
Sender: news@sj.ate.slb.com
Organization: Schlumberger Technologies, ATE division, San Jose, Ca.
X-Newsreader: Tin 1.1 PL4
References: <JT.92Oct7191857@fizyk1.fuw.edu.pl>
Date: Fri, 9 Oct 92 19:49:35 GMT
Lines: 30