Rechercher une page de manuel
glutWarpPointer
Langue: en
Version: 154509 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
BSD mandoc
NAME
glutWarpPointer - Moves the mouse pointer to given window coordinates.LIBRARY
OpenGLUT - windowSYNOPSIS
In openglut.h Ft void Fn glutWarpPointer int x int yPARAMETERS
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 Syx Ef
and Bf Sy
y. Ef
CAVEATS
Bf Syx 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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre