Mail Archives: djgpp/1997/01/20/20:52:32
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 -