Rechercher une page de manuel
glutTabletButtonFunc
Langue: en
Version: 153358 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutTabletButtonFunc - Sets a tablet button callback.LIBRARY
OpenGLUT - inputSYNOPSIS
In openglut.h Ft void Fn glutTabletButtonFunc void( *callback )( int button int state int x int y )PARAMETERS
Bf Em
callback Ef
Client tablet button hook.
DESCRIPTION
This function registers a Bf Sycallback Ef
by which you receive reports a tablet button status feature. Buttons are reported with Bf Sy
button Ef
in the range 1 to glutDeviceGet( Bf Sy
GLUT_NUM_TABLET_BUTTONS). Ef
Bf Sy
state Ef
is either Bf Sy
GLUT_UP Ef
or Bf Sy
GLUT_DOWN Ef
and Bf Sy
x Ef
and Bf Sy
y Ef
are the tablet coordinate (see glutTabletMotionFunc() for the bounds of Bf Sy
x Ef
and Bf Sy
y). Ef
The callback is bound to the Bf Li
current window Ef
.
CAVEATS
OpenGLUT does not implement tablet support.Buttons are Bf Em
not Ef
pressure-sensitive.
TODO
We might want to add support for this sooner or later. Although a tablet could also be generalized as a mouse. There are relatively cheap AipTek HyperPen tablets, and slightly less cheap Wacom tablets on many store shelves.SEE ALSO
glutTabletButtonFunc(3) glutMouseFunc(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre