table of contents
        
      
      
    | GLUTJOYSTICKFUNC(3) | Library Functions Manual (local) | GLUTJOYSTICKFUNC(3) | 
NAME¶
glutJoystickFunc —
    Reports joystick state for the current window.
LIBRARY¶
OpenGLUT - input
SYNOPSIS¶
#include
    <openglut.h>
void
  
  glutJoystickFunc(void(
    *callback )( unsigned int buttons,
    int xaxis,
    int yaxis,
    int zaxis ),
    int pollInterval);
PARAMETERS¶
callback
Client function for joystick events
pollInterval
Approximate (minimum) millisecond interval
DESCRIPTION¶
The callback is called roughly every
pollinterval
milliseconds, and will give the joystick status.
The
buttons
bitmask is a bit-wise
OR
of:
- GLUT_JOYSTICK_BUTTON_A
- GLUT_JOYSTICK_BUTTON_B
- GLUT_JOYSTICK_BUTTON_C
- GLUT_JOYSTICK_BUTTON_D
The axis values are in the range [-1000,1000].