🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #554

Programming graphics mouse in C ?

#554
From: Brian Murphy
Date: Thu, 30 Jul 1992 13:19
24 lines
1732 bytes
I am attempting to write an application in C that uses a microsoft
compatible mouse in graphics mode.  The difficulty I am having is in the
call of the driver to determine the release status and number of cliks
since the last call.  Each time I call this function the status and
number of cliks appear to be 0.  Maybe (most probably) I don't
understand the sequence necessary to call this function properly.  

I have coded a fairly tight loop that waits for the mouse to rest and
then calls the release status function.  This always gives a zero status
and number of cliks although the cursor position of the mouse at button
release appears to be correct.  Could someone give some guidance on just
how the mouse calls should be interacted with.

Thanks in advance.
----------------------------------------------------------------------------
  Brian L. Murphy                         " If at first you don't succeed, 
  Eastern Illinois University               you're probably doing it
  Computer and Telecommunications Services  wrong."   -Anonymous 
  Charleston,  IL  61920 

Opinions expressed are my own and are not necessarily shared by Eastern
Illinois University.  But it doesn't hurt to hope, now does it ?    
---------------------------------------------------------------------------
Technical Details
Message-ID: <1992Jul30.131912.2252@uxa.ecn.bgu.edu>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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
From: csblm@uxa.ecn.bgu.edu (Brian Murphy)
Subject: Programming graphics mouse in C ?
Message-ID: <1992Jul30.131912.2252@uxa.ecn.bgu.edu>
Organization: Educational Computing Network
Date: Thu, 30 Jul 1992 13:19:12 GMT
Lines: 24