glutKeyboardUpFunc man page

glutKeyboardUpFunc — Sets the keyboard key release callback for the current window.

Library

OpenGLUT - input

Synopsis

#include <openglut.h>

void
glutKeyboardUpFunc(void( *callback )( unsigned char key, int x, int y ));

Parameters


callback


Client hook for ASCII key releases.

Description

This function provides a way to detect the release of a keyboard key. The keys are reported exactly as with glutKeyboardFunc(), save that the


callback


registered via this function is used to report the event.

This callback is bound to the


current window


.

Caveats

Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.

See Also

glutKeyboardFunc(3) glutSpecialUpFunc(3)

 

Referenced By

glutCreateMenuWindow(3), glutKeyboardFunc(3), glutSpecialUpFunc(3).