glutTabletButtonFunc - sets the special keyboard callback for the current window.


void glutTabletButtonFunc(void (*func)(int button, int state,
int x, int y));



The new tablet button callback function.


glutTabletButtonFunc sets the tablet button callback for the current window. The tablet button callback for a window is called when the window has tablet input focus (normally, when the mouse is in the window) and the user generates tablet button presses. The button parameter will be the button number (starting at one). The number of available tablet buttons can be determined with glutDeviceGet(GLUT_NUM_TABLET_BUTTONS). The state is either GLUT_UP or GLUT_DOWN indicating whether the callback was due to a release or press respectively. The x and y callback parameters indicate the window relative coordinates when the tablet button state changed.

Registering a tablet button callback when a tablet device is not available is ineffectual and not an error. In this case, no tablet button callbacks will be generated.

Passing NULL to glutTabletButtonFunc disables the generation of tablet button callbacks. When a new window is created, no tablet button callback is initially registered.


glutTabletMotionFunc, glutDeviceGet, glutMotionFunc, glutSpaceballMotionFunc


Mark J. Kilgard (

More Linux Commands

glGetMinmax(3gl) - get minimum and maximum pixel values.....
glGetMinmax returns the accumulated minimum and maximum pixel values (computed on a per-component basis) in a one-dimensional image of width 2. The first set of

mkdirhier(1) - makes a directory hierarchy - Linux man page
The mkdirhier command creates the specified directories. Unlike mkdir if any of the parent directories of the specified directory do not exist, it creates them

COLS(3ncurses) - curses global variables - Linux man page...
This page summarizes variables provided by the curses library. A more complete description is given in the curses(3X) manual page. Depending on the configuratio

offsetof(3) - offset of a structure member - Linux man page
The macro offsetof() returns the offset of the field member from the start of the structure type. This macro is useful because the sizes of the fields that comp

memccpy(3) - copy memory area (Library - Linux man page)....
The memccpy() function copies no more than n bytes from memory area src to memory area dest, stopping when the character c is found. If the memory areas overlap

login(1) - Begin session on the system - Linux manual page
login is used when signing onto a system. If no argument is given, login prompts for the username. The user is then prompted for a password, where approprate. E

locale.conf(5) - configuration file for locale settings.....
The /etc/locale.conf file configures system-wide locale settings. It is read at early-boot by systemd(1). The basic file format of locale.conf is a newline-sepa

io_destroy(2) - destroy an asynchronous I/O context.........
The io_destroy() system call will attempt to cancel all outstanding asynchronous I/O operations against ctx_id, will block on the completion of all operations t

apropos(1) - search the manual page names and descriptions
Each manual page has a short description available within it. apropos searches the descriptions for instances of keyword. keyword is usually a regular expressio

SDL_ConvertAudio(3) - Convert audio data to a desired audio
SDL_ConvertAudio takes one parameter, cvt, which was previously initilized. Initilizing a SDL_AudioCVT is a two step process. First of all, the structure must b

Tk_ImageChanged(3) - notify widgets that image needs to be r
An image manager calls Tk_ImageChanged for an image whenever anything happens that requires the image to be redrawn. As a result of calling Tk_ImageChanged, any

epoll(4) - I/O event notification facility - Linux man page
epoll is a variant of poll(2) that can be used either as an edge-triggered or a level-triggered interface and scales well to large numbers of watched file descr

We can't live, work or learn in freedom unless the software we use is free.