glutpassivemotionfunc(3) - Linux man page
Name
glutPassiveMotionFunc - Sets the non-dragging (gliding?) mouse-motion callback.
Library
OpenGLUT - input
Synopsis
#include <openglut.h>
void
glutPassiveMotionFunc(void( *callback )( int x, int y ));
-
Parameters
callback Client mouse-glide hook.
Description
If you set this callback on a window, then every time that OpenGLUT detects a change in the mouse position inside that window, with no buttons pressed on that mouse, OpenGLUT will invoke callback with the window coordinates of the mouse.
This callback is bound to the current window .
Caveats
Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.
See Also
glutmotionfunc(3) glutmousefunc(3) glutentryfunc(3)
BSD Epoch BSD