Message-ID: <005501bdfca6$2a5c3aa0$c5223182@marst96.m.resnet.pitt.edu> From: "mark reed" To: Subject: Re: (new guy) mouse woes Date: Tue, 20 Oct 1998 23:52:03 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com you probably need to have two diff regs. If you still have problems, I have a program that does what you say you're trying to do, and it includes other mouse functions. email me if you want it. try : void mouse_abs_pos(int *x, int *y) { union REGS inregs, outregs; regs.x.ax = 0x03; int86(0x33, &inregs, &outregs); *x = regs.x.cx; *y = regs.x.dx; return 0; }