Mail Archives: djgpp/1997/12/31/19:30:28
>Subject: DJGPP Mouse Routines
>From: "Matthew Reiferson" <MReiferson AT aol DOT com>
>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
- Raw text -