glutTabletButtonFunc
NAMESYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO
AUTHOR
NAME
glutTabletButtonFunc - sets the special keyboard callback for the current window.
SYNTAX
void
glutTabletButtonFunc(void (*func)(int button, int state,
int x, int y));
ARGUMENTS
func |
The new tablet button callback function. |
DESCRIPTION
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.
SEE ALSO
glutTabletMotionFunc, glutDeviceGet, glutMotionFunc, glutSpaceballMotionFunc
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
More Linux Commands
manpages/glGetMinmax.3gl.html
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
manpages/mkdirhier.1.html
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
manpages/COLS.3ncurses.html
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
manpages/offsetof.3.html
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
manpages/memccpy.3.html
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
manpages/login.1.html
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
manpages/locale.conf.5.html
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
manpages/io_destroy.2.html
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
manpages/apropos.1.html
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
manpages/SDL_ConvertAudio.3.html
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
manpages/Tk_ImageChanged.3.html
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
manpages/epoll.4.html
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
