delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/20/20:52:32

From: Tudor <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems programming the mouse.
Date: Mon, 20 Jan 1997 18:07:18 -0800
Organization: Communications Accesibles Montreal
Lines: 26
Message-ID: <32E424D6.6BF7@cam.org>
References: <Pine DOT SV4 DOT 3 DOT 95 DOT 970120124635 DOT 13707B-100000 AT qlink1>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynappp-48.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Brien Donald C wrote:
> 
> 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.
I dunno,but ya have to load the mouse driver first.
Sorry if ya allready knew this.
You could take a look at the allegro sources;maybe it'll help.
-- 
tudor 'at' cam 'dot' org
yoda69 'at' hotmail 'dot' com
http://www.cam.org/~tudor

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d-(--) s(-):(+) a? C+ UL>++++ P L>+++++ E- W++ N o K---(----) w---
O---- M-- V-? PS+++ PE Y PGP t+ 5-- X+++>++++ R tv b+ DI D+ G e->++
h>++ r- y>+++++ 
------END GEEK CODE BLOCK------

- Raw text -


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