ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



glutGetModifiers(3GLUT)                             GLUT                             glutGetModifiers(3GLUT)



NAME
       glutGetModifiers - returns the modifier key state when certain callbacks were generated.

SYNTAX
       int glutGetModifiers(void);

DESCRIPTION
       glutGetModifiers  returns the modifier key state at the time the input event for a keyboard, special,
       or mouse callback is generated.  This routine may only be called while a keyboard, special, or  mouse
       callback is being handled. The window system is permitted to intercept window system defined modifier
       key strokes or mouse buttons, in which case, no GLUT callback will be  generated.  This  interception
       will be independent of use of glutGetModifiers.

       The bitmask components of the returned integer value are:

       GLUT_ACTIVE_SHIFT
               Set if the Shift modifier or Caps Lock is active.

       GLUT_ACTIVE_CTRL
               Set if the Ctrl modifier is active.

       GLUT_ACTIVE_ALT
               Set if the Alt modifier is active.

SEE ALSO
       glutSpecialFunc(3G), glutKeyboardFunc(3G), glutMouseFunc(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                             glutGetModifiers(3GLUT)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.