Tao.FreeGlut SDK Documentation

Glut.glutGetModifiers Method 

Returns the modifier key state when certain callbacks were generated.

[Visual Basic]
Public Shared Function glutGetModifiers() As Integer
[C#]
public static int glutGetModifiers();

Return Value

Returns the modifier key state at the time the input event for a keyboard, special, or mouse callback is generated. Valid values are:

Value Description
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.

Remarks

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.

See Also

Glut Class | Tao.FreeGlut Namespace | glutKeyboardFunc | glutMouseFunc | glutSpecialFunc