centos man page for glutmousewheelfunc

Query: glutmousewheelfunc

OS: centos

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

UNTITLED
LOCAL UNTITLED
NAME
glutMouseWheelFunc -- Sets the mouse wheel callback for the current window.
LIBRARY
OpenGLUT - input
SYNOPSIS
#include <openglut.h> void glutMouseWheelFunc(void( *callback )( int wheel, int direction, int x, int y ));
PARAMETERS
callback Client hook for mouse wheel events.
DESCRIPTION
If the mouse wheel is spun over your (sub)window, OpenGLUT will, in theory, report this via the MouseWheel callback. wheel is the wheel number, direction is +/- 1, and x and y are the mouse coordinates. If you do not register a wheel callback, wheel events will be reported as mouse buttons. This callback is bound to the current window .
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 does work on X, just not reliably.) You are encouraged to use the standard, reliable mouse-button reporting, rather than wheel events. Windows created via glutCreateMenuWindow() always cascade keyboard and mouse events to their parent.
SEE ALSO
glutMouseFunc(3) Epoch
Related Man Pages
xcb_ungrab_button(3) - centos
glutmousefunc(3glut) - mojave
qwheelevent(3qt) - redhat
qwheelevent(3qt) - centos
glutspecialfunc(3) - centos
Similar Topics in the Unix Linux Community
DB2 convert digits to binary format
Tar Command
CentOS7 restoring file capabilities
Shopt -s histappend
Controlling user input