CentOS 7.0 - man page for glutkeyboardfunc (centos section 3)
|Linux & Unix Commands - Search Man Pages
UNTITLED LOCAL UNTITLED
glutKeyboardFunc -- Sets the Keyboard callback for the current window.
OpenGLUT - input
glutKeyboardFunc(void( * callback )( unsigned char key, int x, int y ));
callback Client function for keyboard event.
This callback registration allows you to handle traditional ASCII keyboard input. A general
rule of thumb is that if a key has a common ASCII code, then OpenGLUT assigns that code to
the key and calls the Keyboard callback with the ASCII code in the key parameter. For
other keys, you must use glutSpecialFunc(). Not all keys can be reported by OpenGLUT.
As a convenience, the mouse coordinates, relative to your window, are also returned.
This callback is bound to the current window .
This function is not very international-friendly.
Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their
All times are GMT -4. The time now is 12:00 AM.