home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10664 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!news.centerline.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!wupost!cs.utexas.edu!hellgate.utah.edu!peruvian.utah.edu!msmith
  3. From: msmith%peruvian.utah.edu@cs.utah.edu (Matthew Smith)
  4. Subject: Re: Capturing Mouse Interrupts
  5. Date: 16 Nov 92 08:59:29 MST
  6. Message-ID: <1992Nov16.085929.14092@hellgate.utah.edu>
  7. Keywords: mouse capture interrupt IRQ
  8. Reply-To: msmith%peruvian.utah.edu@cs.utah.edu
  9. Organization: University of Utah, CS Dept., Salt Lake City
  10. References: <ua#@byu.edu>
  11. Lines: 25
  12.  
  13. In article <ua#@byu.edu>, $dougn@sasb.byu.edu (Douglas R. Nebeker - MIS_SAS) writes:
  14. |> Help!
  15. |> 
  16. |> I am trying to hook the mouse interrupts so that each time the mouse is 
  17. |> moved, my routine can be notified.  I've tried hooking Int 33h, but found 
  18. |> that didn't work since Int 33h is only called to initialize the mouse and/or 
  19. |> driver.  Int 33h, AX=24h returns the IRQ number and tells me that my mouse 
  20. |> is using IRQ 4 (I have comfirmed this with other utilities).
  21.  
  22. Try looking at interrupt 33h, function 12h.  This call allows you to force the
  23. mouse to call a function of yours whenever an interrupt occurs.  I believe you
  24. need to pass in the address of your function in DS:BX, and the mask of "interrupt
  25. types" (such as every time the mouse moves, a button is pressed, a button is
  26. released, etc) that determines which mouse functions causes your handler to be
  27. called in CX.  You can find that information in any lowlevel reference such as Ralf
  28. Brown's interrupt listings.
  29.  
  30. |> Douglas R. Nebeker         Internet: $dougn@sasb.byu.edu
  31.  
  32. -- 
  33. Matt Smith
  34. msmith@peruvian.utah.edu
  35. Student - University of Utah Department of Computer Science
  36.  
  37. "Dead minds stink alike" - me.
  38.