Mail Archives: djgpp/1997/12/13/12:31:31
jaster32 AT hotmail DOT com wrote:
>
> 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..
>
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
| <fabrice AT asim DOT lip6 DOT fr>
|
|
-
- Raw text -