From: "A.Appleyard" Organization: Materials Science Centre To: DJGPP AT DELORIE DOT COM Date: Mon, 2 Dec 1996 16:49:44 GMT Subject: mouse Message-ID: <4B52A63A0C@fs2.mt.umist.ac.uk> 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.