glutButtonBoxFunc man page

glutButtonBoxFunc — 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).