From: Fabrice ILPONSE Newsgroups: comp.os.msdos.djgpp Subject: Re: The mouse in Allegro Date: Fri, 12 Dec 1997 10:25:25 +0100 Organization: Universites Paris VI/Paris VII - France Lines: 30 Message-ID: <34910305.7636@trash.lip6.fr> References: <34903FD8 DOT 6750 AT bergen DOT mail DOT telia DOT com> <3490affe DOT 185690352 AT news DOT earthlink DOT net> NNTP-Posting-Host: asim.lip6.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk jaster32 AT hotmail DOT com wrote: > > On Thu, 11 Dec 1997 20:32:40 +0100, john kismul > 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.. > If it's your own, the x coordonate have to be divided by 2 is you don't set the mouse coordonates limit! > I hope this is what you were talking about.. -- ^ ^ ^ | | | +-+-+ Fabrice ILPONSE | | | -