GLUTBUTTONBOXFUNC

Section: C Library Functions (3)
Updated: LOCAL
Page Index

BSD mandoc
 

NAME

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)


 

Index

NAME
LIBRARY
SYNOPSIS
PARAMETERS
DESCRIPTION
CAVEATS
SEE ALSO