Copyright (C) 2000-2012 |
Manpages glutMotionFuncSection: GLUT (3GLUT)Updated: 3.7 Index Return to Main Contents NAMEglutMotionFunc, glutPassiveMotionFunc - set the motion and passive motion callbacks respectively for the current window.SYNTAXvoid glutMotionFunc(void (*func)(int x, int y)); void glutPassiveMotionFunc(void (*func)(int x, int y)); ARGUMENTS
DESCRIPTIONglutMotionFunc and glutPassiveMotionFunc set the motion and passive motion callback respectively for the current window. The motion callback for a window is called when the mouse moves within the window while one or more mouse buttons are pressed. The passive motion callback for a window is called when the mouse moves within the window while no mouse buttons are pressed.The x and y callback parameters indicate the mouse location in window relative coordinates. Passing NULL to glutMotionFunc or glutPassiveMotionFunc disables the generation of the mouse or passive motion callback respectively. SEE ALSOglutMouseFunc, glutSpaceballMotionFunc, glutTabletMotionFuncAUTHORMark J. Kilgard (mjk@nvidia.com)
IndexThis document was created by man2html, using the manual pages. Time: 21:11:13 GMT, April 19, 2024 |