1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutMouseWheelFunc — Sets the mouse wheel callback for the current win‐
5     dow.
6

LIBRARY

8     OpenGLUT - input
9

SYNOPSIS

11     #include <openglut.h>
12
13     void
14     glutMouseWheelFunc(void( *callback )( int wheel, int direction, int x,
15         int y ));
16

PARAMETERS

18      callback     Client hook for mouse wheel events.
19

DESCRIPTION

21     If the mouse wheel is spun over your (sub)window, OpenGLUT will, in the‐
22     ory, report this via the MouseWheel callback.   wheel  is the wheel num‐
23     ber,  direction  is +/- 1, and  x  and  y  are the mouse coordinates.
24
25     If you do not register a wheel callback, wheel events will be reported as
26     mouse buttons.
27
28     This callback is bound to the  current window  .
29

CAVEATS

31     Due to lack of information about the mouse, it is impossible to implement
32     this correctly on X at this time.  Use of this function limits the porta‐
33     bility of your application.  (This feature  does   work on X, just not
34     reliably.)  You are encouraged to use the standard, reliable mouse-button
35     reporting, rather than wheel events.
36
37     Windows created via glutCreateMenuWindow() always cascade keyboard and
38     mouse events to their parent.
39

SEE ALSO

41     glutMouseFunc(3)
42
43
44
45
46                                     Epoch
Impressum