Rechercher une page de manuel
glutSpaceballButtonFunc
Langue: en
Version: 171758 (fedora - 06/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutSpaceballButtonFunc - Sets a spaceball button callback.LIBRARY
OpenGLUT - inputSYNOPSIS
In openglut.h Ft void Fn glutSpaceballButtonFunc void( *callback )( int button int state )PARAMETERS
Bf Em
callback Ef
Client spaceball button hook.
DESCRIPTION
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( Bf SyGLUT_NUM_SPACEBALL_BUTTONS) Ef
and numbers them from 1. Button state is either Bf Sy
GLUT_UP Ef
or Bf Sy
GLUT_DOWN. Ef
The callback is bound to the Bf Li
current window Ef
.
CAVEATS
OpenGLUT does not implement spaceball support.In contrast, mouse buttons are numbered from 0 in the GLUT API. This is a wrinkle.
SEE ALSO
glutSpaceballRotateFunc(3) glutSpaceballMotiononFunc,3Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre