Is the mouse input buffered?

I am using GLUT 3.7 on a 833MHz Pentium III system running SuSE Linux 7.0 with a GeForce2MX card, and I am having the following problem:

My application has a glutMotionFunction which can take quite a long time to execute and then calls glutPostRedisplay. The problem is that it sometimes takes a VERY long time before the window is actually updated - in fact the glutMotionFunction is called many times before this happens.

I am guessing that the problem is that the input from the mouse is buffered by GLUT or X and GLUT will only call the display() function once all this input has been processed. Is there any way of emptying this buffer immediately after the glutMouseMotion function such that the time it is called, it will only have the most recent mouse position?

Thanks for your help,


This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.