glutSpaceballButtonFunc - sets the Spaceball button callback for the current window.


void glutSpaceballButtonFunc(void (*func)(int button, int state));



The new spaceball button callback function.


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

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

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


glutSpaceballMotionFunc, glutSpaceballRotateFunc, glutMouseFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutJoystickFunc, glutDeviceGet


Mark J. Kilgard (

More Linux Commands

systemd.kill(5) Process killing procedure configuration.....
Unit configuration files for services, sockets, mount points, swap devices and scopes share a subset of configuration options which define the killing procedure

initscr(3ncurses) - curses screen initialization and manipul
initscr is normally the first curses routine to call when initializing a program. A few special routines sometimes need to be called before it; these are slk_in

ifcfg-bridge(5) - ethernet bridge interface configuration...
To setup a bridge interface you need a configuration file ifcfg-<interface-name> with the usual network settings. But you must add additional variables: BRIDGE.

Tk_FreeImage(3) - use an image in a widget - Linux man page
These procedures are invoked by widgets that wish to display images. Tk_GetImage is invoked by a widget when it first decides to display an image. name gives th

pdfseparate(1) - Portable Document Format (PDF) page extract
pdfseparate extract single pages from a Portable Document Format (PDF). pdfseparate reads the PDF file PDF-file, extracts one or more pages, and writes one PDF

getconf(1) - print system configuration variables (ManPage)
-a Displays all configuration variables for the current system and their values. -v Indicate the specification and version for which to obtain configuration var

getaliasbyname(3) - read an alias entry - Linux manual page
One of the databases available with the Name Service Switch (NSS) is the aliases database, that contains mail aliases. (To find out which databases are supporte

Mail::SpamAssassin::Plugin::Hashcash(3pm) - perform hashcash
Hashcash is a payment system for email where CPU cycles used as the basis for an e-cash system. This plugin makes it possible to use valid hashcash tokens added

mkinitrd(8) - create initrd disk image - Linux manual page
mkinitrd creates an initramfs image <initrd-image> for the kernel with version <kernel-version> by calling dracut. Important This version of mkinitrd is provide

link_field(3form) - create and destroy form fields (ManPage)
The function new_field allocates a new field and initializes it from the parameters given: height, width, row of upper-left corner, column of upper-left corner,

cpfind(1) - Feature matching for panoramic stitching........
cpfind cpfind is a control-point detector for Hugin. It expects a project file as input and writes a project file with control-points on success. It depends on

XtIsApplicationShell(3) - obtain and verify a widget's class
The XtClass function returns a pointer to the widgets class structure. The XtSuperclass function returns a pointer to the widgets superclass class structure. Th

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