MyWebUniversity.com Home Page
 



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



NAME
       glutSpecialFunc  -  sets  the special keyboard callback for the current
       window.

SYNTAX
       void glutSpecialFunc(void (*func)(int key, int x, int y));

ARGUMENTS
       func      The new special callback function.

DESCRIPTION
       glutSpecialFunc sets the special keyboard callback for the current win-
       dow.  The special keyboard callback is triggered when keyboard function
       or directional keys are  pressed.  The  key  callback  parameter  is  a
       GLUTKEY*  constant  for the special key pressed. The x and y callback
       parameters indicate the mouse in window relative coordinates  when  the
       key  was  pressed. When a new window is created, no special callback is
       initially registered and special key strokes in the window are ignored.
       Passing  NUL  to  glutSpecialFunc  disables  the generation of special
       callbacks.

       During a special callback, glutGetModifiers may be called to  determine
       the  state  of modifier keys when the keystroke generating the callback
       occurred.

       An implementation should do its best to provide ways  to  generate  all
       the GLUTKEY* special keys. The available GLUTKEY* values are:

       GLUTKEYF1
               F1 function key.

       GLUTKEYF2
               F2 function key.

       GLUTKEYF3
               F3 function key.

       GLUTKEYF4
               F4 function key.

       GLUTKEYF5
               F5 function key.

       GLUTKEYF6
               F6 function key.

       GLUTKEYF7
               F7 function key.

       GLUTKEYF8
               F8 function key.

       GLUTKEYF9
               F9 function key.

       GLUTKEYF100
               F10 function key.

       GLUTKEYF11
               F11 function key.

       GLUTKEYF12
               F12 function key.

       GLUTKEYLEFT
               Left directional key.

       GLUTKEYUP
               Up directional key.

       GLUTKEYRIGHT
               Right directional key.

       GLUTKEYDOWN
               Down directional key.

       GLUTKEYPAGEUP
               Page up directional key.

       GLUTKEYPAGEDOWN
               Page down directional key.

       GLUTKEYHOME
               Home directional key.

       GLUTKEYEND
               End directional key.

       GLUTKEYINSERT
               Inset directional key.

       Note  that  the  escape, backspace, and delete keys are generated as an
       ASCI character.

SEE ALSO
       glutSpecialUpFunc, glutKeyboardFunc,  glutMouseFunc,  glutSpaceballBut-
       tonFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutGetModifiers

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



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

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