home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / msdos / programm / 2185 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  2.8 KB

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