delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/17/03:19:22

Date: Thu, 17 Apr 1997 10:01:14 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jeff Weeks <pweeks AT execulink DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: mouse detection in DJGPP. Need help.
In-Reply-To: <5j3pro$pn6@nr1.toronto.istar.net>
Message-ID: <Pine.SUN.3.91.970417100020.18537K-100000@is>
MIME-Version: 1.0

On 17 Apr 1997, Jeff Weeks wrote:

> Hi, I've been converting some of my old TC++ routines into DJGPP for a
> long time and thought I'd tackle my mouse class, figuring it'd be real
> easy.  It hasn't been :).  I can't get it to detect the presence of a
> mouse.  I've tried three different things.

Who says that when the mouse isn't present, Int 33h should point to a
NULL address?  It could point to an IRET instruction, for example.

The usual way to detect a mouse is just use Int 33h, function 0.
Every program I saw does it this way.  I suggest you do that also.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019