Mail Archives: djgpp/1996/12/02/12:05:45
Someone asked about trapping the mouse. Eli Zaretski once showed me how to
do it, and I developed it into a package which comes to about 115 lines of C++
program text. It works OK for 80*25 char text mode (at least in v1). (Graphics
modes ignore the trap routine; in larger char text modes e.g. 132*43 it often
crashes, blame DOS not djgpp.)
This method does not make any of the keystrokes go dead.
I find that if instead of trapping mouse events you keep on polling the
mouse in a tight loop, some of the special keystrokes, particularly those with
codes > 127 (e.g. alt_home = 151), are often ignored.
- Raw text -