delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/20/23:51:41

Message-ID: <005501bdfca6$2a5c3aa0$c5223182@marst96.m.resnet.pitt.edu>
From: "mark reed" <marst96+@pitt.edu>
To: <djgpp AT delorie DOT com>
Subject: Re: (new guy) mouse woes
Date: Tue, 20 Oct 1998 23:52:03 -0400
MIME-Version: 1.0
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;
}


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019