How can I extend the mouse space in OpenGL windowed mode

advertisements

How do I extend the distance the mouse can move in an OpenGL window?

What I wish to achieve is an fps like interface where the cursor is hidden and camera rotations are not limited by the mouse having to remain inside the window boundaries.


This is often implemented by "warping" the mouse back to the center of the screen, in Linux. Here is a forum thread on this, using the popular SDL library to do the actual mouse reading.

In Windows, look into using lower-level input API:s, such as XInput.