From: "Michael Stewart" Newsgroups: comp.os.msdos.djgpp Subject: Re: mouse problem! Date: Fri, 28 May 1999 08:42:34 +0100 Organization: (Posted via) Netcom Internet Ltd. Message-ID: <7ilh68$ir8$1@taliesin.netcom.net.uk> References: <7ikl66$gal$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: hgty.capgemini.co.uk X-Trace: taliesin.netcom.net.uk 927877128 19304 194.42.240.2 (28 May 1999 07:38:48 GMT) X-Complaints-To: abuse AT corp DOT netcom DOT net DOT uk NNTP-Posting-Date: 28 May 1999 07:38:48 GMT X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Try this, it's untested but I think it should work. void GetMouseMov (int &xinc, int &yinc) { __dpmi_regs r; r.x.ax = 0x0b; __dpmi_int (0x33, &r); xinc = r.x.cx; yinc = r.x.dx; return; }