www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/27/06:47:27

From: Derek <removethismerlin__ AT geocities DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: intrrupt handler.
Date: Thu, 27 May 1999 03:21:27 -0500
Organization: The University of Manitoba
Lines: 46
Message-ID: <374D0087.CB0E5F9C@geocities.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 990527103426 DOT 9561H-100000 AT is>
NNTP-Posting-Host: annex3-18.cc.umanitoba.ca
Mime-Version: 1.0
X-Trace: canopus.cc.umanitoba.ca 927793322 10018 130.179.153.130 (27 May 1999 08:22:02 GMT)
X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca
NNTP-Posting-Date: 27 May 1999 08:22:02 GMT
X-Mailer: Mozilla 4.6 [en] (Win95; U)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:

> On Tue, 25 May 1999, Derek wrote:
>
> > whoops..sorry..a couple mistakes...I corrected them but it stiil doesn't
> > work....
>
> Define ``doesn't work''.  Otherwise, how can you expect us to help
> you?

I'm assuming its not installing my ISR....

>
>
> I also think this is a very inefficient way of hooking the mouse.  You
> are intercepting the COM1 communications port (presumably connected to
> a serial mouse).  This means you will have to handle all the
> communications with the mouse yourself, instead of letting the mouse
> driver handle it.  Even the mouse cursor won't appear and won't move
> unless your program creates it, puts it on the screen, and then moves
> it whenever the mouse reports movement.  In effect, you will be
> writing your own mouse driver.

I know...I thought this would be faster than calling __dpmi_int(0x33,&regs)
each time I wanted to know where the mouse was....besides It'd be nice to know
how to do this anyway...

>
> And then, of course, some (many?) modern PCs use a mouse that plugs
> directly into the system bus, in which case you won't see anything
> useful coming your way through COM1.
>

ya...many...but it would still be nice to know....

>
> Hooking the mouse through function 0Ch of Int 33h is much, much, MUCH
> easier.

but isn;t it much much slower?

--
   Derek


- Raw text -


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