1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutGetModifiers — Returns the status of Alt, Shift, and Ctrl keys.
5

LIBRARY

7     OpenGLUT - inputstate
8

SYNOPSIS

10     #include <openglut.h>
11
12     int
13     glutGetModifiers(void);
14

DESCRIPTION

16     According to which, if any, modifier keys are held, the return value is
17     the logical  OR  combination of any of the following symbolic bitmasks:
18
19      -  GLUT_ACTIVE_SHIFT
20      -  GLUT_ACTIVE_CTRL
21      -  GLUT_ACTIVE_ALT
22
23     E.g., if the shift key is held, and no other modifier keys are held, this
24     function will return  GLUT_ACTIVE_SHIFT.
25

BUGS

27     Complains if not invoked by a client callback.
28
29     Does not differentiate between the left and right forms of the modifiers.
30

SEE ALSO

32     glutSetOption(3) glutGet(3) glutDeviceGet(3) glutLayerGet(3)
33
34
35
36
37                                     Epoch
Impressum