1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutTabletButtonFunc — Sets a tablet button callback.
5

LIBRARY

7     OpenGLUT - input
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutTabletButtonFunc(void( *callback )( int button, int state, int x,
14         int y ));
15

PARAMETERS

17      callback     Client tablet button hook.
18

DESCRIPTION

20     This function registers a  callback  by which you receive reports a
21     tablet button status feature.  Buttons are reported with  button  in the
22     range 1 to glutDeviceGet(  GLUT_NUM_TABLET_BUTTONS).    state  is either
23     GLUT_UP  or  GLUT_DOWN  and  x  and  y  are the tablet coordinate (see
24     glutTabletMotionFunc() for the bounds of  x  and  y).
25
26     The callback is bound to the  current window  .
27

CAVEATS

29     OpenGLUT does not implement tablet support.
30
31     Buttons are  not   pressure-sensitive.
32

TODO

34     We might want to add support for this sooner or later. Although a tablet
35     could also be generalized as a mouse. There are relatively cheap AipTek
36     HyperPen tablets, and slightly less cheap Wacom tablets on many store
37     shelves.
38

SEE ALSO

40     glutTabletButtonFunc(3) glutMouseFunc(3)
41
42
43
44
45                                     Epoch
Impressum