delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/12/15:16:14

From: john kismul <john DOT kismul AT bergen DOT mail DOT telia DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: The mouse in Allegro
Date: Fri, 12 Dec 1997 17:17:53 +0100
Organization: Riksnett AS
Lines: 18
Message-ID: <349163B1.274E@bergen.mail.telia.com>
References: <34903FD8 DOT 6750 AT bergen DOT mail DOT telia DOT com> <3490affe DOT 185690352 AT news DOT earthlink DOT net> <34910305 DOT 7636 AT trash DOT lip6 DOT fr>
Reply-To: john DOT kismul AT bergen DOT mail DOT telia DOT com
NNTP-Posting-Host: t7o204p36.telia.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> > >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..
> >
>         If it's your own, the x coordonate have to be divided by 2 is you don't
> set the mouse coordonates limit!

Ok....I didn't know that.

I'll see if it works.  Thanks!

- Raw text -


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