1UNTITLED LOCAL UNTITLED
2
4 glutJoystickFunc — Reports joystick state for the current window.
5
7 OpenGLUT - input
8
10 #include <openglut.h>
11
12 void
13 glutJoystickFunc(void( *callback )( unsigned int buttons, int xaxis,
14 int yaxis, int zaxis ), int pollInterval);
15
17 callback Client function for joystick events
18
19 pollInterval Approximate (minimum) millisecond interval
20
22 The callback is called roughly every pollinterval milliseconds, and
23 will give the joystick status.
24
25 The buttons bitmask is a bit-wise OR of:
26 - GLUT_JOYSTICK_BUTTON_A
27 - GLUT_JOYSTICK_BUTTON_B
28 - GLUT_JOYSTICK_BUTTON_C
29 - GLUT_JOYSTICK_BUTTON_D
30
31 The axis values are in the range [-1000,1000].
32
33 Epoch