PDA

View Full Version : Change mouse programatically



dmantamp
04-29-2004, 12:54 AM
Hi All,
I wanted to know how do, I change my mouse position on a GL window programatically, especially on Linux. DO I need to use some X functions, can you please point to me one. What about MS Windows ?

Thanks
DM

mikael_aronsson
04-29-2004, 02:17 AM
Hi !

OpenGL does not know about the mouse so yes you have to use OS specific code to change the cursor position, SetCursorPosition( x,y,flags) (look it up on msdn) on Windows, I do not remember the function name on X, check the xlib documentation.

Mikael