+ /*
+ * Remember the current modifiers state
+ */
+ modifiers = 0;
+ if (event.xkey.state & (ShiftMask|LockMask))
+ modifiers |= GLUT_ACTIVE_SHIFT;
+ if (event.xkey.state & ControlMask)
+ modifiers |= GLUT_ACTIVE_CTRL;
+ if (event.xkey.state & Mod1Mask)
+ modifiers |= GLUT_ACTIVE_ALT;
+ window->State.Modifiers = modifiers;