glutTabletMotionFunc – Sets a tablet motion callback.
Library
OpenGLUT – input
Synopsis
In openglut.h Ft void Fn glutTabletMotionFunc void (* callback)( int x int y )
Parameters
Bf Em
callback Ef
Client tablet motion hook.
Description
This function registers a Bf Sy
callback Ef
by which OpenGLUT reports a puck or stylus position in the range of [0, 2000] along the Bf Sy
x Ef
and Bf Sy
y Ef
axes.
The callback is bound to the Bf Li
current window Ef
.
Caveats
OpenGLUT does not implement tablet support.
This API does not include tilt information.
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)