PDA

View Full Version : Manually Changing Mouse Location



swrittenb
11-28-2003, 05:11 AM
Hi there,

Is there an OS-independent way to set the mouse location and hide the mouse pointer using OpenGL? For example, I'd like to implement a wrap-around mouse pointer in my application. If not OS-independent, what are the best ways to handle this in Linux and Windows?

Thanks,
Scott

mikael_aronsson
11-28-2003, 05:46 AM
OpenGL does not have a clue what a mouse is so you will not find any help there.

You have to use the platform specfic functions (ShowCursor, HideCursor and so on on win32) or get yourself a platform independent GUI toolkit (FOX, Fltk, GTK?, Qt for example).

Mikael