glutSpecialUpFunc(3GLUT) GLUT glutSpecialUpFunc(3GLUT)
NAME
glutSpecialUpFunc - sets the special keyboard up (key release) callback
for the current window.
SYNTAX
void glutSpecialUpFunc(void (*func)(int key, int x, int y));
ARGUMENTS
func The new special callback function.
DESCRIPTION
glutSpecialUpFunc sets the special keyboard up (key release) callback
for the current window. The special keyboard up callback is triggered
when keyboard function or directional keys are released. The key call-
back 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 up callback is initially registered and special key releases in
the window are ignored. Passing NUL to glutSpecialUpFunc disables the
generation of special up callbacks.
During a special up callback, glutGetModifiers may be called to deter-
mine the state of modifier keys when the key release generating the
callback occurred.
To avoid the reporting of key release/press pairs due to auto repeat,
use glutIgnoreKeyRepeat to ignore auto repeated keystrokes.
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
glutSpecialFunc, glutKeyboardFunc, glutKeyboardUpFunc, glutMouseFunc,
glutSpaceballButtonFunc, glutButtonBoxFunc, glutTabletButtonFunc, glut-
GetModifiers, glutIgnoreKeyRepeat
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutSpecialUpFunc(3GLUT)
|