Sponsor:

Your company here, and a link to your site. Click to find out more.

glutButtonBoxFunc - Man Page

Sets a button-box button callback.

Library

OpenGLUT - input

Synopsis

#include <openglut.h>

void
glutButtonBoxFunc(void( *callback )( int button, int state ));

Parameters


callback

Client buttonbox button hook.

Description

A dials-and-buttons box has buttons numbered from 1 to glutDeviceGet(


GLUT_NUM_BUTTON_BOX_BUTTONS),

inclusive. The parameters callback are the


button

and its


state

as either


GLUT_UP

or


GLUT_DOWN

.

The callback is bound to the


current window

.

Caveats

OpenGLUT does not implement button-box support.

Also in contrast, mouse buttons are numbered from 0 in the GLUT API. This is a wrinkle.

See Also

glutDialsFunc(3)

Referenced By

glutDialsFunc(3).