Mail Archives: djgpp/1999/05/26/02:57:36
On Tue, 25 May 1999, Derek wrote:
> I'm tring to install a mouse handler and have run into a few
> problems...I have read the faq and got this out of it:
>
> _go32_dpmi_seginfo oldmousehandler,newmousehandler;
>
> save old handler
>
> _go32_dpmi_get_protected_mode_interrupt_vector(0x3F8,&oldmousehandler);
This is all terribly wrong. First, the mouse interrupt is not
reflected to protected mode (since it's a software interrupt).
Second, Int 3F8h is probably something Turbo Pascal invents for you,
because the highest interrupt number is FFh.
So this will never work with DJGPP.
The DJGPP FAQ already has a working version of installing a handler
for the mouse, see section 18.8 of the FAQ. I suggest you use that
code as a base for yours.
- Raw text -