|
NAMEglutSpecialFunc - sets the special keyboard callback for the current window.SYNTAXvoid glutSpecialFunc(void (*func)(int key, int x, int y)); ARGUMENTS
DESCRIPTIONglutSpecialFunc sets the special keyboard callback for the current window. The special keyboard callback is triggered when keyboard function or directional keys are pressed. The key callback parameter is a GLUT_KEY_* 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 NULL 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 GLUT_KEY_* special keys. The available GLUT_KEY_* values are:
Note that the escape, backspace, and delete keys are generated as an ASCII character. SEE ALSOglutSpecialUpFunc, glutKeyboardFunc, glutMouseFunc, glutSpaceballButtonFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutGetModifiersAUTHORMark J. Kilgard (mjk@nvidia.com)
Visit the GSP FreeBSD Man Page Interface. |