glutPassiveMotionFunc - Man Page
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
Referenced By
glutCreateMenuWindow(3), glutEntryFunc(3), glutMouseFunc(3).