glut-only mouselook

I’m looking to implement a glut-only mouselook. Or rather not to have any windows-specific code.

So is there a way to reposition the mouse cursor to the center of the screen in glut? I haven’t been able to find anything like that.

GLFW does this automatically for you when you glfwDisable( GLFW_MOUSE_CURSOR ). (GLFW is a toolkit similar to GLUT)

try glutWarpPointer(int x, int y). this will move the cursor to the window coordinates specified.

b

Thanks, those are both the type of things I’m looking for. Sweet. This BB makes me really happy sometimes