Sweeping out old events



Hello,

  I have following problem: in my program there is an OpenGL widget. According
to the mouse movement I rotate whole scene. Unfortunately mouse events
("motion_notify_event") come in at higher rate than OpenGL can redraw scene. So
my question is: how can I erase too old events or how to detect that this event
can be ignored (since there is new mouse position somewhere in the queue).

Thank you for any your advice,
Dan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]