home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10561 < prev    next >
Encoding:
Text File  |  1992-11-12  |  1.4 KB  |  36 lines

  1. Nntp-Posting-Host: dougn.byu.edu
  2. Lines: 24
  3. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!hamblin.math.byu.edu!news.byu.edu!news
  4. Message-ID: <ua#@byu.edu>
  5. Date: Thu, 12 Nov 92 16:57:19 MST
  6. Newsgroups: comp.os.msdos.programmer
  7. From: $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS)
  8. Subject: Capturing Mouse Interrupts
  9. Keywords: mouse capture interrupt IRQ
  10. Organization: Brigham Young University
  11.  
  12. Help!
  13.  
  14. I am trying to hook the mouse interrupts so that each time the mouse is 
  15. moved, my routine can be notified.  I've tried hooking Int 33h, but found 
  16. that didn't work since Int 33h is only called to initialize the mouse and/or 
  17. driver.  Int 33h, AX=24h returns the IRQ number and tells me that my mouse 
  18. is using IRQ 4 (I have comfirmed this with other utilities).
  19.  
  20. However, when I hook IRQ4, the mouse still works great, but my routine is 
  21. never notified of any mouse movements.  When I check those routines that 
  22. show the owner of the different IRQs, they DON'T show my program (but they 
  23. DO show my program owning other interrupts that I've hooked in the same way).
  24.  
  25. Now...could it be that everytime I go into a program that uses the mouse 
  26. that the program itself initializes the mouse, which "unhooks" my process 
  27. from the interrupt chain?  If this is so, how can I keep my mouse routine 
  28. hooked?!?
  29.  
  30.  
  31. Thanks in advance for ANY help!
  32.  
  33. ____
  34.  
  35. Douglas R. Nebeker         Internet: $dougn@sasb.byu.edu
  36.