Why set mouse pos when Enable/Disable cursor?

nobody wrote on Sunday, September 16, 2007:

I’m just wondering, since this is making it impossible to do my app. design which:

runs windowed, but shows its own cursor when the mouse is over it (disable the systems) and then restores the systems when the mouse leaves the window area.

well, since GLFW force sets the mouse position when Enable/Disable GLFW_MOUSE_CURSOR, its making it almost impossible to do. Is there some reason I can’t remove that force code from the lib?

Jason (jason /at/ wishray |dot| com)

elmindreda wrote on Tuesday, September 18, 2007:

The problem is that the current GLFW API doesn’t differentiate between hiding the mouse cursor and locking it. I’m sorry that the changes broke your code, and there’s no reason why you can’t edit out that bit of the code and recompile.

The next revision of the API will separate these two concepts, and thus enable client code like yours to work as expected.