Collaboration diagram for Input Callbacks:
Functions | |
void | glutEntryFunc (void(*callback)(int state)) |
void | glutKeyboardFunc (void(*callback)(unsigned char key, int x, int y)) |
void | glutKeyboardUpFunc (void(*callback)(unsigned char key, int x, int y)) |
void | glutMotionFunc (void(*callback)(int x, int y)) |
void | glutMouseFunc (void(*callback)(int button, int state, int x, int y)) |
void | glutPassiveMotionFunc (void(*callback)(int x, int y)) |
void | glutSpecialFunc (void(*callback)(int key, int x, int y)) |
void | glutSpecialUpFunc (void(*callback)(int key, int x, int y)) |
|
Window mouse entry/leave callback.
This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Sets the Keyboard callback for the current window.
As a convenience, the mouse coordinates, relative to your window, are also returned. This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Sets the keyboard key release callback for the current window.
This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Reports mouse-motion while a button is held.
This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Sets the mouse-button callback for the current window.
Mouse wheel motion can be reported as buttons. If you do not request otherwise, a wheel spun forward will act like a button clicking down, immediately followed by clicking up. Spinning the same wheel backward will act like a different button clicking. Mouse wheel pseudo-buttons are added after all real buttons. While the button is held and the mouse is dragged, you receive mouse-motion events (glutMotionFunc()), even if the mouse is dragged out of the window. This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Sets the non-dragging (gliding?) mouse-motion callback.
This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Sets the Special callback for the current window.
The special callback handles some additional keys that are not covered under plain "keyboard" events. The key that is passed to the callback is one of an enumerated set. The association to keys on your keyboard should be obvious. Their GLUT symbol names are:
To receive other keys, see glutKeyboardFunc(). This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
|
Sets the special key release callback for the current window.
This callback is bound to the current window. It is fatal to call this function without properly initializing OpenGLEAN via glutInit(). It is a nonfatal, silent error to call this function without a current window.
|
Supported in part by SourceForge.net.
Generated on Fri Sep 16 20:15:35 2005 for OpenGLEAN by
doxygen 1.4.3
The OpenGLEAN project is hosted by
olib.org and
SourceForge.