I'm trying to work on a simple FPS style game (only aiming, no translational movements) and I'm having a hard time with getting the correct mouse interaction. Mainly I don't know how to set it up where the mouse cursor/crosshair stays in the center of the window while the scene rotates (currently I can move around, but once the mouse cursor gets to the edge of the screen it stops, and it's annoying to have the cursor moving around). I know there are functions like glutWarpPointer and SetCursorPos, but then I can't seem to move at all.
Can anyone help point me in the right direction, or is this an effort in futility with glut? Thanks for any help.



LinkBack URL
About LinkBacks



