OpenGLUT - input
glutSpaceballButtonFunc(void( *callback )( int button, int state ));
Client spaceball button hook.
This function registers a callback for a spaceball to report buttons. A spaceball has six axes of freedom (three of motion and three of orientation), plus buttons. The spaceball has glutDeviceGet(
and numbers them from 1. Button state is either
The callback is bound to the
OpenGLUT does not implement spaceball support.
In contrast, mouse buttons are numbered from 0 in the GLUT API. This is a wrinkle.