George Petrov wrote:
> But if there are timers callbacks (add_timeout), then last event is
> repeated on every timer callback.
By 'repeated', do you mean the same event is actually being fired
to the event handlers, or just that Fl::event() can return the same
value more than once after an Fl::wait() call.
If I understand you correctly, it sounds like you're thinking
Fl::wait() only returns when an event has happened, but I don't
think that's the documented behavior. The docs say it returns
'when something happens'; events, timers and who knows what all else.
I think the behavior you're seeing is as documented; Fl::event()
returns the last event processed from the event queue, and Fl::wait()
returns whenever 'something' happened, not necessarily an event.
Docs I'm referring to:
Fl::wait() -- http://fltk.org/documentation.php/doc-1.1/Fl.html#Fl.wait
Fl::event() --
http://fltk.org/documentation.php/doc-1.1/Fl.html#Fl.event
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk