home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8172 < prev    next >
Encoding:
Text File  |  1992-07-30  |  1.7 KB  |  34 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!usc!sdd.hp.com!ux1.cso.uiuc.edu!mp.cs.niu.edu!uxa.ecn.bgu.edu!csblm
  3. From: csblm@uxa.ecn.bgu.edu (Brian Murphy)
  4. Subject: Programming graphics mouse in C ?
  5. Message-ID: <1992Jul30.131912.2252@uxa.ecn.bgu.edu>
  6. Organization: Educational Computing Network
  7. Date: Thu, 30 Jul 1992 13:19:12 GMT
  8. Lines: 24
  9.  
  10.  
  11. I am attempting to write an application in C that uses a microsoft
  12. compatible mouse in graphics mode.  The difficulty I am having is in the
  13. call of the driver to determine the release status and number of cliks
  14. since the last call.  Each time I call this function the status and
  15. number of cliks appear to be 0.  Maybe (most probably) I don't
  16. understand the sequence necessary to call this function properly.  
  17.  
  18. I have coded a fairly tight loop that waits for the mouse to rest and
  19. then calls the release status function.  This always gives a zero status
  20. and number of cliks although the cursor position of the mouse at button
  21. release appears to be correct.  Could someone give some guidance on just
  22. how the mouse calls should be interacted with.
  23.  
  24. Thanks in advance.
  25. ----------------------------------------------------------------------------
  26.   Brian L. Murphy                         " If at first you don't succeed, 
  27.   Eastern Illinois University               you're probably doing it
  28.   Computer and Telecommunications Services  wrong."   -Anonymous 
  29.   Charleston,  IL  61920 
  30.  
  31. Opinions expressed are my own and are not necessarily shared by Eastern
  32. Illinois University.  But it doesn't hurt to hope, now does it ?    
  33. ---------------------------------------------------------------------------
  34.