BACKGROUND: In my application, the right mouse button is attached to a menu via glutAttachMenu(). The left button is processed by the standard glutMouseFunc(). Everything works fine except if I accentially press the left and right buttons simultaneously (in any order). In that case, an up or down even from the left button gets lost. I can easily detect a lost down event because of the “extra” up I get. But I can’t detect a lost up event because as far as my application knows, the user is still holding down the button.
QUESTION: Is this a bug in GLUT? A feature? Has anyone else noticed this or have a work-around for it?