Re: [AD] mouse_api branch

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


On 2006-08-29, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> On 8/27/06, Peter Wang <tjaden@xxxxxxxxxx> wrote:
> > If you click outside, wouldn't that focus another window?
> Oh, yes I see what you mean now.
> 
> In the new API, I don't think there are methods to:
> Determine the number of axes on the mouse
> Get the value on the fourth axis

Add them :-)

> 
> Also, in the world of multiple windows, functions like
> al_show_mouse_cursor are going to need a display argument, aren't
> they?

Yes.

> Finally there's a comment in mouse.h to the effect that "software
> cursors may or may not be provided for later (it would need
> significant cooperation from the display API)." Since we decided on
> the NOT_IMMEDIATE etc etc mode, it should be fairly easy:
> (pseudo-code)
> void al_flip(AL_DISPLAY* d)
> {
>    maybe_draw_cursor(d, mouse_x, mouse_y);
>    d->vtable->flip();
> }
> Am I right?

Depends if you mind the mouse cursor not moving unless al_flip() is
called.  We'd need to let the user know whether hardware or software
cursors are employed.

Peter





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