Re: [AD] event hooks

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


On Thu, 2006-12-14 at 01:13 +1100, Peter Wang wrote:
> 
> A problem is that a single event may be delivered to multiple event
> queues, a callback might be called multiple times for the same event.

I see. Probably could add a flag which gets cleared.

> > Or alternatively, have a function:
> > 
> > void al_event_acknowledge(AL_EVENT *event);
> 
> This is basically what I had in mind, but I was thinking of a
> resize-event specific function, rather than a general acknowledgement
> function.  I think this is easier to work with than a callback.

So something like:

al_display_acknowledge_resize(AL_DISPLAY *display);

And it would "fix" all the internal stuff for a possibly changed window
size. (Should come up with a better name than of course, something
following the al_verb_noun scheme.)

Actually, I just had another thought, this function could again be
called automatically, but not from the events handling, but from
al_flip() this time.

-- 
Elias Pschernig





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