delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/20/13:19:00

Date: Mon, 20 Jan 1997 12:55:37 -0500 (EST)
From: Brien Donald C <6dcb AT qlink DOT queensu DOT ca>
To: djgpp AT delorie DOT com
Subject: Problems programming the mouse.
Message-ID: <Pine.SV4.3.95.970120124635.13707B-100000@qlink1>
MIME-Version: 1.0

I'm trying to program the mouse under djgpp and it is giving me some
problems.  I've programmed the mouse many times before in real mode
compilers and it works just fine.  Particularly, I like to use the
relative mouse position function (0x0b with int 0x33).  When I call this
interrupt in djgpp I get garbage numbers returned in cx and dx (nothing
close to the number of mickeys relative to last position.)  I tried using
int86 and __dpmi_int, but I have had no luck.  I haven't tried writing an
assembly version, but I suspect I would get the same problems.  All other
mouse functions work perfectly.  Any help on this problem (or an
alternative approach) would be greatly appreciated.  

Fustrated.  

"I've come to realize that the transition to protected mode is not as
smooth as some would have me believe."

- Raw text -


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