MyWebUniversity.com Home Page
 



Darwin Mac OS X man pages main menu
glutGetModifiers(3GLUT)              GLUT              glutGetModifiers(3GLUT)



NAME
       glutGetModifiers  -  returns  the modifier key state when certain call-
       backs 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:

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

       GLUTACTIVECTRL
               Set if the Ctrl modifier is active.

       GLUTACTIVEALT
               Set if the Alt modifier is active.

SEE ALSO
       glutSpecialFunc, glutKeyboardFunc, glutMouseFunc

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



GLUT                                  3.7              glutGetModifiers(3GLUT)
Darwin Mac OS X man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™