set the motion and passive motion callbacks respectively for the current window.


glutMotionFunc( )-> void
glutMotionFunc( function )
Specify handler for GLUT 'Motion' events
    def handler( (int) x, (int) y ):
        return None
glutPassiveMotionFunc( )-> void
glutPassiveMotionFunc( function )
Specify handler for GLUT 'PassiveMotion' events
    def handler( (int) x, (int) y ):
        return None


The new motion or passive motion callback function.

See Also

glutMouseFunc glutSpaceballMotionFunc glutTabletMotionFunc

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

OpenGLContext OpenGLContext/ Lines: 115, 117
OpenGL-Demo PyOpenGL-Demo/GLE/ Lines: 32, 38
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson48/ Lines: 161
Glinter Lines: 622
{Artistic License} PymmLib applications/ Lines: 407
{LGPL} PyUI pyui/renderers/ Lines: 59
{LGPL} PyUI2 renderers/ Lines: 59
{LGPL} PyUI2 system/ Lines: 56
{LGPL} PyMT pymt/ui/window/ Lines: 18, 43
{GPL3} OpenGL-Programmable Lines: 227
{GPL3} OpenGL-Programmable Lines: 326
{GPL3} OpenGL-Programmable Lines: 380
{GPL3} OpenGL-Programmable Lines: 238
{GPL3} OpenGL-Programmable Lines: 390
{GPL3} OpenGL-Programmable Lines: 359
{GPL3} OpenGL-Programmable Lines: 236
{GPL3} OpenGL-Programmable Lines: 318
{GPL3} OpenGL-Programmable Lines: 337
{GPL3} OpenGL-Programmable Lines: 257
OpenGLContext OpenGLContext/ Lines: 120, 122
Glinter Lines: 623
{LGPL} PyUI pyui/renderers/ Lines: 60
{LGPL} PyUI2 renderers/ Lines: 60
{LGPL} PyUI2 system/ Lines: 57