Re: [AD] [ alleg-Bugs-2431768 ] display field for mouse state |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-12-16, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> On 2008-12-15, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> > Cool, that way we can move windows around and make them dodge the
> > mouse. I can see a great game of "catch that window!"
> > Ok, maybe not. If we're going to report the position relative to the
> > root window, should we also report the coordinates of the upper left
> > and lower right coordinates of an Allegro window? Or can we already do
> > that?
>
> We have al_get_window_position().
>
> I added "probably" for a reason. It seems to be a reasonable behaviour.
> Otherwise, what would you report if the mouse is not over any of our
> windows?
I thought of a reason we might not want to report root window coordinates.
It would imply that we also generate mouse movement events even
when the mouse cursor is outside any of our windows. I don't think we
want to do that, at least by default.
Peter