www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/21/13:06:58

Date: Tue, 21 Jun 94 10:19:39 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: cgg AT mundil DOT cs DOT mu DOT OZ DOT AU
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Installing a mouse callback routine with DJGPP

> Hi.  Is there any way to get the mouse driver software to call a routine
> that I specify whenever any mouse event happens.  I'm wanting to basically
> execute a mouse function 12, but under DJGPP.
> 
> I have tried to setup all the regs for function 12 and then do an int $0x33,
> but the computer totally locked when I moved the mouse.

Use the <dpmi.h> functions to create a real-mode callback.  This will
give you a valid 16-bit address to pass to the mouse handler.  See
"samples/dpmi/*.h" for some examples.


- Raw text -


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