glutTabletButtonFunc (3) - Linux Manuals

glutTabletButtonFunc: Sets a tablet button callback.

NAME

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.