home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky alt.msdos.programmer:2185 comp.sys.ibm.pc.programmer:333 comp.os.msdos.programmer:8498 comp.msdos.programmer:37
- Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer,comp.os.msdos.programmer,comp.msdos.programmer
- Path: sparky!uunet!caen!hellgate.utah.edu!peruvian.utah.edu!msmith
- From: msmith%peruvian.utah.edu@cs.utah.edu (Matthew Smith)
- Subject: Re: Help! How to integrate (Microsoft) mouse control in BC++
- Date: 12 Aug 92 14:40:10 MDT
- Message-ID: <1992Aug12.144010.23066@hellgate.utah.edu>
- Organization: University of Utah CS Dept
- References: <Bss8BM.8qp@cs.dal.ca>
- Lines: 43
-
- In article <Bss8BM.8qp@cs.dal.ca> franck@ug.cs.dal.ca (Glenn Franck) writes:
- >OK. I'm trying to figure out how to use my Microsoft mouse in the progs
- >I'm writing. So, to that end, I'm trying to find some code (or preferably
- >a package of routines) that will allow me to use a mouse.
- >
- >I'm writing in C, using Broland C++. The only package I know about so
- >far is MOUCLIB5.ZIP, which I got from wuarchive. I don't have TASM right
- >now, so I can't compile the code as it is. Also, it looks confusing
- >as to which routines have to be called before others, etc. (although
- >I haven't looked at the code in detail, I must admit).
- >
- >Anybody have some suggestions? Progs at an FTP site? Maybe a reference
- >book? All help greatly appreciated. If you can e-mail me, that's the
- >best, because I have a hard time keeping up with news. Sorry if this
- >is in one of the FAQL's, but if it is, can somebody please tell me?
- >
- >Thanks!
- >G!enn
- >
- >
- > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- > Glenn Franck | "Everybody's got to deviate from the norm."
- > franck@ug.cs.dal.ca | - N. Peart, RUSH
- > gfranck@ac.dal.ca |=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- > =-=-=-=-=- Disclaimer: Pardon me for being Franck! -=-=-=-=-=
- > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-
- It's actually very simple. INT 33, with various different values in the AX
- register. I have a mouse library that is event driven. This means, that to
- find out if the mouse has done anything, you need to grab a structure from
- an event list. Most people do it this way, however, some people prefer to have
- their mouse routines poll the mouse when they want to look for something rather
- than have every mouse event be captured by the event manager.
-
- It's a very small library. Something like 300 lines of C source, including
- the interrupt handler, and all of the event information. I could send it to
- some FTP site or something.
-
-
- Matt Smith
- msmith@peruvian.utah.edu
- Student - University of Utah Department of Computer Science
-