Manually Changing Mouse Location

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

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