glutMouseWheelFunc (3) - Linux Manuals
glutMouseWheelFunc: Sets the mouse wheel callback for the current window.
NAMEglutMouseWheelFunc - Sets the mouse wheel callback for the current window.
LIBRARYOpenGLUT - input
SYNOPSISIn openglut.h Ft void Fn glutMouseWheelFunc void( *callback )( int wheel int direction int x int y )
DESCRIPTIONIf the mouse wheel is spun over your (sub)window, OpenGLUT will, in theory, report this via the MouseWheel callback. Bf Sy
If you do not register a wheel callback, wheel events will be reported as mouse buttons.
This callback is bound to the
CAVEATSDue to lack of information about the mouse, it is impossible to implement this correctly on X at this time. Use of this function limits the portability of your application. (This feature Bf Em
Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.