1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutMotionFunc — Reports mouse-motion while a button is held.
5

LIBRARY

7     OpenGLUT - input
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutMotionFunc(void( *callback )( int x, int y ));
14

PARAMETERS

16      callback     Client hook for dragging mouse.
17

DESCRIPTION

19     This function reports the mouse position when the mouse is dragged start‐
20     ing from within your window.  (``Dragging'' occurs when you press one or
21     more mouse buttons in one of your OpenGLUT windows, and then move the
22     mouse around.)
23
24     This callback is bound to the  current window  .
25

CAVEATS

27     Events are reported until the mouse button is released, even if the mouse
28     leaves the window.
29
30     Windows created via glutCreateMenuWindow() always cascade keyboard and
31     mouse events to their parent.
32

SEE ALSO

34     glutMouseFunc(3) glutPassiveMotion(3)
35
36
37
38
39                                     Epoch
Impressum