On 11.11.2011 00:09, David wrote:
> It doesn't appear that Fl:event() is reset to FL_NO_EVENT if something like 
> Fl::wait(.001) times out.  Just keeps return the last event that occured some 
> other time Fl::wait was called.  Don't you think it should be reset?

No. From the docs in chapter "Handling events":

"Events are identified by the integer argument passed to a handle() 
method that overrides the Fl_Widget::handle() virtual method. Other 
information about the most recent event is stored in static locations 
and acquired by calling the Fl::event_*() methods. This static 
information remains valid until the next event is read from the window 
system, so it is ok to look at it outside of the handle() method."

See the last sentence above. If Fl::wait(.001) "times out", then no
event occurred, and the static information persists.

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to