Re: [AD] Inconsistent behaviour with mouse coordinates in different windowed modes in Windows.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2005-12-09, aj <aj@xxxxxxxxxx> wrote:
> >
> >>3. Not sure, but i think that the mouse coordinates when outside the
> >>window are undefined, but it could be better if they are defined to
> >>something (like the last values). It would be nice too if we had a
> >>function like "is_mouse_inside_window();".

Good idea.

> >In the GDIB mode, they are always the last values they were when the 
> >mouse was in the window. Is there a reason why they aren't in the DXWN 
> >mode, or have I found a bug? What about windowed modes on other 
> >platforms?
> 
> not 100% sure.. but i would think the mouse_x and mouse_y co-ords 
> should always be the last (valid) values generated.
> regardless of which driver you use, that is to say all drivers should 
> act the same.
> 
> I think you may have found a bug.

I think so too.  The documentation says: "The `mouse_x' and `mouse_y'
positions are integers ranging from zero to the bottom right corner of
the screen."

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/