Hello there,
in an effort to familiarize myself with the DirectFB API, I'm currently
porting Tom Gilbert's Imlib2 based image/webcam viewer feh to DFB. It
has among other features a slideshow mode, which changes the image after
a configurable amount of time. These timers are implemented using
select() as to avoid busy waiting. They are interrupted by keyboard
events for example when the user wants to terminate the program during
such a timer period.
I'd like to propose the addition of timeout values as an additional
parameter to WaitForEvent, which would of course require using select
in the _device_EventThread() handlers. An alternative would be to add
WaitForEventWithTimeout() or something similar to the API.
What do you think?
Cheers, and keep up the good work, the API is a pleasure to work with,
Till
--
mailto: [EMAIL PROTECTED]
http://www.adam-lilienthal.de/till
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.