It's not clear to me from the docs what a valid value for the last parameter could be.
glfwSetInputMode ( mainwindow, GLFW_CURSOR_HIDDEN, 0 );
The error callback flags up a bad enum here.
I'm a doofus.
glfwSetInputMode ( mainwindow, GLFW_CURSOR, GLFW_CURSOR_HIDDEN );
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.