glutKeyboardFunc (3) - Linux Manuals
glutKeyboardFunc: Sets the Keyboard callback for the current window.
NAME
glutKeyboardFunc - Sets the Keyboard callback for the current window.LIBRARY
OpenGLUT - inputSYNOPSIS
In openglut.h Ft void Fn glutKeyboardFunc void( * callback )( unsigned char key int x int y )PARAMETERS
Bf Em
DESCRIPTION
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 Bf SyAs a convenience, the mouse coordinates, relative to your window, are also returned.
This callback is bound to the
Bf Li
CAVEATS
This function is not very international-friendly.Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.