1UNTITLED LOCAL UNTITLED
2
4 glutMouseWheelFunc — Sets the mouse wheel callback for the current win‐
5 dow.
6
8 OpenGLUT - input
9
11 #include <openglut.h>
12
13 void
14 glutMouseWheelFunc(void( *callback )( int wheel, int direction, int x,
15 int y ));
16
18 callback Client hook for mouse wheel events.
19
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
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
41 glutMouseFunc(3)
42
43
44
45
46 Epoch