From: eggbrains AT aol DOT com (Egg brains) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP Mouse Routines Date: 1 Jan 1998 00:19:09 GMT Lines: 28 Message-ID: <19980101001900.TAA07474@ladder01.news.aol.com> NNTP-Posting-Host: ladder01.news.aol.com Organization: AOL http://www.aol.com References: <34a9da82 DOT 0 AT news DOT usinternet DOT com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >Subject: DJGPP Mouse Routines >From: "Matthew Reiferson" >Date: Wed, Dec 31, 1997 00:33 EST >Message-id: <34a9da82 DOT 0 AT news DOT usinternet DOT com> > >I wrote some mouse routines in C with DJGPP. The problem I came across is >that I must divide the x value returned into REGS from a call to the >position of the mouse (to determine the x,y location of the cursor), but not >the y value. I have an interrupt routine which keeps the 2 location >variables updated......here is the code.....maybe you can tell me what I am >doing wrong, oh it's in Mode13h so SCREEN_W and SCREEN_H are 320,200 >respectively. >............ code snipped ........ i have been working on a DJGGP mouse routine as part of my TRW (the reinvented wheel) project. to get what i have done for the mouse so far, goto: http://members.aol.com/eggbrains/download/mymouse1.zip (i just uploaded it for this message and do not prommis, or even think that i will keep unloading more copies). It is still under improvement, so chill if it aint all that you want... -- it doesn't even have locking or mouse clean-up!!! as far as i know x and y are never packed into one register. x is usually in cx and y in dx. Paul