> yes, this is exactly what i need. thanks alot!
> is there a way peek the Fltk event queue ? so that i could 
> check if there are any new events, and , if so, call 
> reset_timeout ? i am aware about writing one's own virtual 
> handle function, but how to access the global event struct? 
> after a quick look at the docs i did not found something 
> about peeking into the event queue...

Not reliably - some O/S (read: win32) have suspect ways of passing
events to windows, so not everything gets queused as you'd want or
expect.

What I did (this is not elegant) was modify the handle methods of my
windows to detect enter/leave/move events, and use them to trigger
resets. (The assumption being that if the mouse is moving, and
entering/leaving your windows, then the user is still active.)

That seemed to be enough and was easy to do.



SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to