Query: gluttabletbuttonfunc
OS: centos
Section: 3
Links: centos man pages | All man pages
Forums: Unix Linux Community | Forum Categories
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNTITLEDLOCAL UNTITLEDNAMEglutTabletButtonFunc -- Sets a tablet button callback.LIBRARYOpenGLUT - inputSYNOPSIS#include <openglut.h> void glutTabletButtonFunc(void( *callback )( int button, int state, int x, int y ));PARAMETERScallback Client tablet button hook.DESCRIPTIONThis 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 .CAVEATSOpenGLUT does not implement tablet support. Buttons are not pressure-sensitive.TODOWe 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