GLUTSPECIALFUNC

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

BSD mandoc
 

NAME

glutSpecialFunc - Sets the Special callback for the current window  

LIBRARY

OpenGLUT - input  

SYNOPSIS

In openglut.h Ft void Fn glutSpecialFunc void( *callback )( int key int x int y )  

PARAMETERS

Bf Em
 callback Ef
    Client function for keyboard event.  

DESCRIPTION

Registers a Bf Sy
 callback Ef
 for OpenGLUT to call when the user presses "special" keys on the keyboard.

The special callback handles some additional keys that are not covered under plain "keyboard" events. The Bf Sy
 key Ef
 that is passed to the  Bf Sy
 callback Ef
 is one of an enumerated set. The association to keys on your keyboard should be obvious. Their GLUT symbol names are:


 -  Bf Sy
 GLUT_KEY_F1 Ef
 
 -  Bf Sy
 GLUT_KEY_F2 Ef
 
 -  Bf Sy
 GLUT_KEY_F3 Ef
 
 -  Bf Sy
 GLUT_KEY_F4 Ef
 
 -  Bf Sy
 GLUT_KEY_F5 Ef
 
 -  Bf Sy
 GLUT_KEY_F6 Ef
 
 -  Bf Sy
 GLUT_KEY_F7 Ef
 
 -  Bf Sy
 GLUT_KEY_F8 Ef
 
 -  Bf Sy
 GLUT_KEY_F9 Ef
 
 -  Bf Sy
 GLUT_KEY_F10 Ef
 
 -  Bf Sy
 GLUT_KEY_F11 Ef
 
 -  Bf Sy
 GLUT_KEY_F12 Ef
 
 -  Bf Sy
 GLUT_KEY_LEFT Ef
 
 -  Bf Sy
 GLUT_KEY_UP Ef
 
 -  Bf Sy
 GLUT_KEY_RIGHT Ef
 
 -  Bf Sy
 GLUT_KEY_DOWN Ef
 
 -  Bf Sy
 GLUT_KEY_PAGE_UP Ef
 
 -  Bf Sy
 GLUT_KEY_PAGE_DOWN Ef
 
 -  Bf Sy
 GLUT_KEY_HOME Ef
 
 -  Bf Sy
 GLUT_KEY_END Ef
 
 -  Bf Sy
 GLUT_KEY_INSERT Ef
 

To receive other keys, see glutKeyboardFunc().

This callback is bound to the Bf Li
 current window Ef
 .

 

CAVEATS

Many keys are not included; nor is it possible to apply qualifiers such as the Shift or Ctrl key to these keys.

Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.

 

SEE ALSO

glutSpecialUpFunc(3) glutKeyboardFunc(3)