Mail Archives: djgpp/2000/04/23/03:02:01
On Sat, 22 Apr 2000, Sahab Yazdani wrote:
> Hello everybody.. I've written a mouse event handler in DJGPP which for
> the most part works extremely well in either Graphics or Text based
> video modes, except that the darned thing is way too sensative. A
> single average click of the mouse results in roughly 5-10 software
> clicks in a program that I write with my driver.
I'm not sure this is relevant to your problem, but the code you posted
doesn't lock the used_registers variable that is passed to your
MouseHandler function (nor did you include the declaration for this
variable in the posted snippet).
Also, I think you want _go32_dpmi_allocate_real_mode_callback_iret,
not _go32_dpmi_allocate_real_mode_callback_retf. See section 18.8 of
the FAQ for a working example of a mouse handler.
- Raw text -