delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/06/13:05:07

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: mouse handler installation
Date: Sun, 3 Aug 1997 16:21:46 +0100
Organization: None
Distribution: world
Message-ID: <e$20LaAKIK5zEwd4@talula.demon.co.uk>
References: <5s22bl$sbk AT news01 DOT uni-trier DOT de>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 20
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hans-Joerg Frieden writes:
>I'm trying to install a mouse event handler with djgpp v2, but it does not
>seem to work. I tried the example in the faq (18.8), but I guess there's
>something missing. I added two lines
>    r.x.dx = callback_info.rm_offest;
>    r.x.es = callback_info.rm_segment;
>before the __dpmi_int call, but it still will not call my mouse handler at
>all. 

You are calling the int 0x33, ax=0x0C function, right? What value do you
put in %cx? This is a bitmask indicating which conditions should trigger
your handler, so if it is zero your routine will never be called.

For a working example of a djgpp mouse handler, see the file mouse.c
from Allegro...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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