UNTITLED LOCAL UNTITLED
NAMEglutTabletButtonFunc — 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 ALSOglutTabletButtonFunc(3)glutMouseFunc(3)
Epoch