www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/21/13:01:46

From: "Matthew Conte" <spam AT somebody DOT else>
Newsgroups: comp.os.msdos.djgpp
References: <70kvef$r9$1 AT nnrp1 DOT dejanews DOT com>
Subject: Re: new user - mouse problems
Lines: 26
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <7koX1.779$H9.121984@proxye1.nycap.rr.com>
Date: Wed, 21 Oct 1998 12:50:52 -0400
NNTP-Posting-Host: 24.92.55.44
X-Complaints-To: abuse AT nycap DOT rr DOT com
X-Trace: proxye1.nycap.rr.com 908988803 24.92.55.44 (Wed, 21 Oct 1998 12:53:23 EDT)
NNTP-Posting-Date: Wed, 21 Oct 1998 12:53:23 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

jsc AT lds DOT co DOT uk wrote in message <70kvef$r9$1 AT nnrp1 DOT dejanews DOT com>...
>void mouse_abs_pos(int *x, int *y)


x and y must be of type 'short', which is a 16-bit integer.  The code you
are using assumes 16-bit integers.  regs.x.cx and dx are 16-bit registers.

>int mouse_rel_pos(int *x, int *y)

likewise.

>int main(void)
>{
[...]
>int x;
>int y;

make these shorts as well.

You should be all set.

Later,
Matt.



- Raw text -


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