SysTutorials

Linux Manual Pages › Section 3

glutbuttonboxfunc(3)

glutButtonBoxFunc – Sets a button-box button callback.

Library

OpenGLUT – input

Synopsis

In openglut.h Ft void Fn glutButtonBoxFunc void( *callback )( int button int state )

Parameters

Bf Em
 callback Ef
    Client buttonbox button hook.

Description

A dials-and-buttons box has buttons numbered from 1 to glutDeviceGet( Bf Sy
 GLUT_NUM_BUTTON_BOX_BUTTONS), Ef
 inclusive. The parameters callback are the Bf Sy
 button Ef
 and its Bf Sy
 state Ef
 as either  Bf Sy
 GLUT_UP Ef
 or  Bf Sy
 GLUT_DOWN Ef
 .

The callback is bound to the Bf Li
 current window Ef
 .

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)