Hiding mouse cursor with glfw
Since glfw 3.0 the API call has changed, you must use glfwSetInputMode
with a pointer of your window.
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_HIDDEN);
For more information see http://www.glfw.org/docs/3.0/moving.html
It sounds like you may want to use GLFW_CURSOR_DISABLED
(GLFW 3+).
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);
GLFW_CURSOR_DISABLED
hides and locks the cursor so it can't leave your window, just like glfwDisable(GLFW_MOUSE_CURSOR);
.
Source: GLFW Input Guide