delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/12/02:16:26

From: jaster32 AT hotmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: The mouse in Allegro
Date: Fri, 12 Dec 1997 03:33:44 GMT
Organization: EarthLink Network, Inc.
Lines: 17
Message-ID: <3490affe.185690352@news.earthlink.net>
References: <34903FD8 DOT 6750 AT bergen DOT mail DOT telia DOT com>
NNTP-Posting-Host: 207.217.143.83
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 11 Dec 1997 20:32:40 +0100, john kismul
<john DOT kismul AT bergen DOT mail DOT telia DOT com> wrote:

>I've got a problem with getting the correct mouse X position.
>I'm using VGA 320x200.  Everything else works just fine but Allegro
>returns the incorrect X position of the mouse pointer in "mouse_x".
>
>Any one know why, and how to fix it?

are you using the default Allegro mouse??  If so the x and y
coordinates are the top left corner of the cursor. If you made your
own mouse bitmap.. be sure to use the set_mouse_focus(); function to
set the x and y position of the bitmap where you want the cursor to
point.. 

I hope this is what you were talking about..

- Raw text -


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