Mail Archives: djgpp/1997/12/12/15:16:14
> > >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 -