Functions | |
void | glutButtonBoxFunc (void(*callback)(int button, int state)) |
void | glutDialsFunc (void(*callback)(int dial, int value)) |
void | glutEntryFunc (void(*callback)(int state)) |
void | glutForceJoystickFunc (void) |
void | glutJoystickFunc (void(*callback)(unsigned int buttons, int xaxis, int yaxis, int zaxis), int pollInterval) |
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 | glutMouseWheelFunc (void(*callback)(int wheel, int direction, int x, int y)) |
void | glutPassiveMotionFunc (void(*callback)(int x, int y)) |
void | glutSpaceballButtonFunc (void(*callback)(int button, int state)) |
void | glutSpaceballMotionFunc (void(*callback)(int x, int y, int z)) |
void | glutSpaceballRotateFunc (void(*callback)(int x, int y, int z)) |
void | glutSpecialFunc (void(*callback)(int key, int x, int y)) |
void | glutSpecialUpFunc (void(*callback)(int key, int x, int y)) |
void | glutTabletButtonFunc (void(*callback)(int button, int state, int x, int y)) |
void | glutTabletMotionFunc (void(*callback)(int x, int y)) |
|
Sets a button-box button callback.
The callback is bound to the current window.
|
|
Sets a dials-box button callback.
The callback is bound to the current window.
|
|
Window mouse entry/leave callback.
This callback is bound to the current window.
|
|
Forces a joystick poll and callback. Forces the OpenGLUT joystick code to poll your joystick(s) and to call your joystick callbacks with the result. The operation completes, including callbacks, before glutForceJoystickFunc() returns.
|
|
Reports joystick state for the current window.
The buttons bitmask is a bit-wise OR of:
The axis values are in the range [-1000,1000]. |
|
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.
|
|
Sets the keyboard key release callback for the current window.
This callback is bound to the current window.
|
|
Reports mouse-motion while a button is held.
This callback is bound to the 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.
|
|
Sets the mouse wheel callback for the current window.
If you do not register a wheel callback, wheel events will be reported as mouse buttons. This callback is bound to the current window.
|
|
Sets the non-dragging (gliding?) mouse-motion callback.
This callback is bound to the current window.
|
|
Sets a spaceball button callback.
The callback is bound to the current window.
|
|
Sets a spaceball motion callback.
The callback is bound to the current window.
|
|
Sets a spaceball rotation callback.
The callback is bound to the 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.
|
|
Sets the special key release callback for the current window.
This callback is bound to the current window.
|
|
Sets a tablet button callback.
The callback is bound to the current window.
|
|
Sets a tablet motion callback.
The callback is bound to the current window.
|