delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/09/18:03:48

Subject: none
Date: Wed, 09 Mar 1994 22:31:33 GMT
From: "Enrique Riego Seisdedos" <ers AT taric DOT es>
To: "DJ GPP" <djgpp AT sun DOT soe DOT clarkson DOT edu>

Mouse handler & kbhit

I have coded a mouse handler that stores mouse events (ala X Windows)
in a queue using  '_go32_dpmi_allocate_real_mode_callback_retf'.

My test program polls the mouse queue waiting for an event, and display it.
Also the keyboard is examined to exit the program with a keystroke.

All is OK when I do not check the keyboard or when the keyboard polling is
done using 'kbhit'.

If I use 'bioskey' or my own '__waitingkey' function (in fact the same
that bioskey) the program always hangs the machine sometimes saying that
interrupt 0x0d or 0x2f is not supported.

Any idea?



-- 
Enrique Riego
ers AT taric DOT es


- Raw text -


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