1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutSpecialFunc — Sets the Special callback for the current window
5

LIBRARY

7     OpenGLUT - input
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutSpecialFunc(void( *callback )( int key, int x, int y ));
14

PARAMETERS

16      callback     Client function for keyboard event.
17

DESCRIPTION

19     Registers a  callback  for OpenGLUT to call when the user presses "spe‐
20     cial" keys on the keyboard.
21
22     The special callback handles some additional keys that are not covered
23     under plain "keyboard" events.  The  key  that is passed to the  callback
24      is one of an enumerated set.  The association to keys on your keyboard
25     should be obvious.  Their GLUT symbol names are:
26
27      -  GLUT_KEY_F1
28      -  GLUT_KEY_F2
29      -  GLUT_KEY_F3
30      -  GLUT_KEY_F4
31      -  GLUT_KEY_F5
32      -  GLUT_KEY_F6
33      -  GLUT_KEY_F7
34      -  GLUT_KEY_F8
35      -  GLUT_KEY_F9
36      -  GLUT_KEY_F10
37      -  GLUT_KEY_F11
38      -  GLUT_KEY_F12
39      -  GLUT_KEY_LEFT
40      -  GLUT_KEY_UP
41      -  GLUT_KEY_RIGHT
42      -  GLUT_KEY_DOWN
43      -  GLUT_KEY_PAGE_UP
44      -  GLUT_KEY_PAGE_DOWN
45      -  GLUT_KEY_HOME
46      -  GLUT_KEY_END
47      -  GLUT_KEY_INSERT
48
49     To receive other keys, see glutKeyboardFunc().
50
51     This callback is bound to the  current window  .
52

CAVEATS

54     Many keys are not included; nor is it possible to apply qualifiers such
55     as the Shift or Ctrl key to these keys.
56
57     Windows created via glutCreateMenuWindow() always cascade keyboard and
58     mouse events to their parent.
59

SEE ALSO

61     glutSpecialUpFunc(3) glutKeyboardFunc(3)
62
63
64
65
66                                     Epoch
Impressum