Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » events

This thread is locked; no one can reply to it. rss feed Print
events
William Labbett
Member #4,486
March 2004
avatar

Hi,

just wondering. Are different event types prioritized in the order they appear in the queue. I mean, if a joystick button gets pressed at the same time an
ALLEGRO_TIMER emits an allegro timer event, is put in the queue before the other in a predetermined way?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

There is no specific order between events except for a few specific ones that work that way like, you get DISPLAY_RESTORED after DISPLAY_LOST, etc....

The queue is protected by a mutex, so all events are processed serially. The time of the event isn't taken until the event is put into the queue, maybe IDK.

William Labbett
Member #4,486
March 2004
avatar

Thanks.

Go to: