Strange mouse interaction

I have a strange problem on XP. In a game that I’ve written, sometimes the mouse interaction does not behave as expected. I’m using glut, and I first I figured I had a bug in my mouse event callback functions. So I commented out all of the functions that register callbacks for mouse events, and I still see mouse events impacting the behavior of the game. For example, when I don’t move the mouse, the game operates as expected and the physics are working properly. When I do move the mouse, it’s as though some state gets corrupted somewhere, and strange things start happening with the physics. Once I stop moving the mouse, everything works fine again. It’s intermittent… the problem only shows up in about 1 in 3 times the program is run. But when it happens, the program is unusable. Any ideas?

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