glutgetmodifiers(3) - Linux man page
Name
glutGetModifiers - Returns the status of Alt, Shift, and Ctrl keys.
Library
OpenGLUT - inputstate
Synopsis
#include <openglut.h>
int
glutGetModifiers(void);
-
Description
According to which, if any, modifier keys are held, the return value is the logical OR combination of any of the following symbolic bitmasks:
- GLUT_ACTIVE_SHIFT - GLUT_ACTIVE_CTRL - GLUT_ACTIVE_ALT
E.g., if the shift key is held, and no other modifier keys are held, this function will return GLUT_ACTIVE_SHIFT.
Bugs
Complains if not invoked by a client callback.
Does not differentiate between the left and right forms of the modifiers.
See Also
glutsetoption(3) glutget(3) glutdeviceget(3) glutlayerget(3)
BSD Epoch BSD