> Thank you so much. I need know the state of keyboard as fast 
> as I can in fltk. So I think get_key is what I need.

Well, there may be some specific reason why in your application, but in
general in a GUI implementation using "out of band" data is exactly what
you DO NOT need...

Most of the time it is important that you process all the events from
the server queue in exactly the order that they occur, or the context
will be wrong at the point the event is processed.

E.g., you might be using some keyboard modifiers to adjust the mouse
behaviour - but if you get mouse events through the event queue but read
the keyboard directly, then they will not be matched up and your
modifiers will not work...

In general, you want to take everything through the queue so that things
happen in the order that the user expects, or Bad Things can happen.

It is important that you don't overfill the event queue though,
especially on set ups with more limited server bandwidth, or the user
experience will be seriously degraded.
So if the rendering falls behind because you are drawing more frames
than the server can render, you need to reduce your frame rate until
something sustainable is attained.
I suspect that this is the state you were in, from your description of
the problem.



SELEX Galileo Ltd
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