Mail Archives: djgpp/1997/08/06/13:05:07
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 -