GLUTGETMODIFIERS

Section: C Library Functions (3)
Updated: LOCAL
Index Return to Main Contents

BSD mandoc
 

NAME

glutGetModifiers - Returns the status of Alt, Shift, and Ctrl keys.  

LIBRARY

OpenGLUT - inputstate  

SYNOPSIS

In openglut.h Ft int Fn glutGetModifiers void  

DESCRIPTION

According to which, if any, modifier keys are held, the return value is the logical Bf Sy
 OR Ef
 combination of any of the following symbolic bitmasks:


 -  Bf Sy
 GLUT_ACTIVE_SHIFT Ef
 
 -  Bf Sy
 GLUT_ACTIVE_CTRL Ef
 
 -  Bf Sy
 GLUT_ACTIVE_ALT Ef
 

E.g., if the shift key is held, and no other modifier keys are held, this function will return Bf Sy
 GLUT_ACTIVE_SHIFT. Ef
 

 

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)