delorie.com/archives/browse.cgi | search |
To: | "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk> |
Cc: | DJGPP AT sun DOT soe DOT clarkson DOT edu |
Subject: | Re: Cat and mouse games |
Date: | Wed, 11 Jan 95 09:03:16 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
> I am developing a Gnu C++ program which used many special keystrokes:- Instead of polling mouse in a loop, isn't it better to arrange for the mouse driver to call you when any button is pressed? There is a function in the Int 33h interface which allows you to register your function (wrapped in a real-mode callback, of course) to be called when any one of a set of mouse events you specify happens. I did this in DJGPP: worked wonderfully.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |