1UNTITLED LOCAL UNTITLED
2
4 glutSpaceballButtonFunc — Sets a spaceball button callback.
5
7 OpenGLUT - input
8
10 #include <openglut.h>
11
12 void
13 glutSpaceballButtonFunc(void( *callback )( int button, int state ));
14
16 callback Client spaceball button hook.
17
19 This function registers a callback for a spaceball to report buttons. A
20 spaceball has six axes of freedom (three of motion and three of orienta‐
21 tion), plus buttons. The spaceball has glutDeviceGet( GLUT_NUM_SPACE‐
22 BALL_BUTTONS) and numbers them from 1. Button state is either GLUT_UP
23 or GLUT_DOWN.
24
25 The callback is bound to the current window .
26
28 OpenGLUT does not implement spaceball support.
29
30 In contrast, mouse buttons are numbered from 0 in the GLUT API. This is
31 a wrinkle.
32
34 glutSpaceballRotateFunc(3) glutSpaceballMotiononFunc,(3)
35
36
37
38
39 Epoch