glutMouseWheelFunc (3) - Linux Manuals
glutMouseWheelFunc: Sets the mouse wheel callback for the current window.
NAME
glutMouseWheelFunc - Sets the mouse wheel callback for the current window.LIBRARY
OpenGLUT - inputSYNOPSIS
In openglut.h Ft void Fn glutMouseWheelFunc void( *callback )( int wheel int direction int x int y )PARAMETERS
Bf Em
If you do not register a wheel callback, wheel events will
be reported as mouse buttons.
This callback is bound to the
Bf Li
Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.
DESCRIPTION
If the mouse wheel is spun over your (sub)window,
OpenGLUT will, in theory, report this via the MouseWheel
callback.
Bf Sy
CAVEATS
Due 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