GLUTWARPPOINTER

Section: C Library Functions (3)
Updated: LOCAL
Page Index

BSD mandoc
 

NAME

glutWarpPointer - Moves the mouse pointer to given window coordinates.  

LIBRARY

OpenGLUT - window  

SYNOPSIS

In openglut.h Ft void Fn glutWarpPointer int x int y  

PARAMETERS

Bf Em
 x Ef
        Window X coord for mouse.

Bf Em
 y Ef
        Window Y coord for mouse.  

DESCRIPTION

glutWarpPointer() moves the mouse pointer to window-relative coordinates given by Bf Sy
 x Ef
 and  Bf Sy
 y. Ef
 

 

CAVEATS

Bf Sy
 x Ef
 and  Bf Sy
 y Ef
 are relative to current window.

Not applicable for Bf Sy
 GLUT_OFFSCREEN Ef
 windows.

Warping means moving, just as if the user had manually moved the mouse. This can generate mouse-motion callbacks. If your callback then moves the pointer again, you may end up in an endless loop. There is some discussion about changing this, but at present this is just a caveat for you, the user, to be aware of.


 

Index

NAME
LIBRARY
SYNOPSIS
PARAMETERS
DESCRIPTION
CAVEATS
LinuxReviews : manual page archive : man3