OpenGL: Keeping mouse in center of screen -mouselook

Started by
1 comment, last by DeepCover 21 years, 1 month ago
Think of Unreal or Half-life where you have mouselook and your cursor is always in the middle of the screen. I''m having trouble keeping my cursor in the middle. I searched the forums and found that people use glutWarpPointer. But when I use it after every screen-draw, it slows everything down really bad. Anyone have any experience doing this that can give me some tips. Thanks in advance.
Advertisement
It may be worth posting this in the Math and Physics forum. I would approach the problem with vectors, but a solution does not come to mind right now.
Don''t use the mouse to move the mouse cursor - use it to move the world around the cursor.. simple There are some articles about it here on gamedev.. look under "Articles & Resources"

| EmailLex & YaccFunction PointersVirtual TerrainKnowledge BaseReal Programmers | DirectSpam
"Evolution is NOT a mistake"

This topic is closed to new replies.

Advertisement