2 /* Copyright (c) Mark J. Kilgard, 1994. */
4 /* This program is freely distributable without licensing fees
5 and is provided without guarantee or warrantee expressed or
6 implied. This program is -not- in the public domain. */
12 glutGetModifiers(void)
16 if(__glutModifierMask
== (unsigned int) ~0) {
18 "glutCurrentModifiers: do not call outside core input callback.");
22 if(__glutModifierMask
& (ShiftMask
|LockMask
))
23 modifiers
|= GLUT_ACTIVE_SHIFT
;
24 if(__glutModifierMask
& ControlMask
)
25 modifiers
|= GLUT_ACTIVE_CTRL
;
26 if(__glutModifierMask
& Mod1Mask
)
27 modifiers
|= GLUT_ACTIVE_ALT
;