glutTabletButtonFunc – Sets a tablet button callback.
Library
OpenGLUT – input
Synopsis
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 Sy
callback 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)