gluttabletbuttonfunc(3) - Linux man page
Name
glutTabletButtonFunc - Sets a tablet button callback.
Library
OpenGLUT - input
Synopsis
#include <openglut.h>
void
glutTabletButtonFunc(void( *callback )( int button, int state, int x, int y ));
-
Parameters
callback Client tablet button hook.
Description
This function registers a callback by which you receive reports a tablet button status feature. Buttons are reported with button in the range 1 to glutDeviceGet( GLUT_NUM_TABLET_BUTTONS). state is either GLUT_UP or GLUT_DOWN and x and y are the tablet coordinate (see glutTabletMotionFunc() for the bounds of x and y).
The callback is bound to the current window .
Caveats
OpenGLUT does not implement tablet support.
Buttons are not 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)
BSD Epoch BSD