Article View: comp.os.msdos.programmer
Article #4107Re: Need help w/mouse func 12, src incl.
From: routley
Date: Wed, 02 Jan 1991 22:37
Date: Wed, 02 Jan 1991 22:37
23 lines
1466 bytes
1466 bytes
>Would someone please pass along an example of how to setup and use mouse >function 12 ( define event handler ) or point out what's wrong with the >test pgm below? Try declaring handler() to be void far handler(). It might also be necessary to declare your set handler routine to be seteventhandler( eventmask, offset( handler), segment( offset)). I don't know why function 12 isn't emphasized more either. It may have something to do with the fact that the typical mechanism for passing information back to the main program from the handler ( using the PSP area) only works in Small and Compact memory models (CS of the handler is the same as the main program). The other possibility is that most programs also have to poll the keyboard, so its easy enough to poll the mouse in the process. Any other suggestions out there? Kevin
Technical Details
Message-ID:
<18631@shlump.nac.dec.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!deccrl!news.crl.dec.com!decvax.dec.com!shlump.nac.dec.com!tle.enet.dec.com!routleyReferences:
<ECOLLINS.90Dec30105010@silicon.nmsu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!bloom-beacon!deccrl!news.crl.dec.com!decvax.dec.com!shlump.nac.dec.com!tle.enet.dec.com!routley From: routley@tle.enet.dec.com Newsgroups: comp.os.msdos.programmer Subject: Re: Need help w/mouse func 12, src incl. Message-ID: <18631@shlump.nac.dec.com> Date: 2 Jan 91 22:37:49 GMT References: <ECOLLINS.90Dec30105010@silicon.nmsu.edu> Sender: newsdaemon@shlump.nac.dec.com Reply-To: routley@tle.enet.dec.com () Distribution: comp.os.msdos.programmer Organization: Digital Equipment Corporation Lines: 23