glutJoystickFunc

sets the joystick callback for the current window.

Signature

glutJoystickFunc( int( pollInterval ) )-> void
glutJoystickFunc( function )
Specify handler for GLUT 'Joystick' events
    def handler( (int) buttonMask, (int) x, (int) y, (int) z ):
        return None

Parameters

VariablesDescription
func
The new joystick callback function.
pollInterval
Joystick polling interval in milliseconds.

See Also

glutForceJoystickFunc glutMotionFunc glutMouseFunc glutSpaceballButtonFunc glutSpaceballMotionFunc glutButtonBoxFunc glutTabletButtonFunc glutDeviceGet