glutForceJoystickFunc man page

glutForceJoystickFunc — Forces a joystick poll and callback.

Library

OpenGLUT - input

Synopsis

#include <openglut.h>

void
glutForceJoystickFunc(void);

Description

Forces the OpenGLUT joystick code to poll your joystick(s) and to call your joystick callbacks with the result. The operation completes, including callbacks, before glutForceJoystickFunc() returns.

Bugs

The original WINCE import used a #if to turn this function off. That is wrong. The proper way to handle the joystick code is to generate "null" events. The WINCE code needs to be fixed in og_joystick.c, not here.

See Also

glutJoystickFunc(3)