Macinkross
2004.01.25, 06:32 PM
Hey,
I've got a problem. I'm currently working on a shooter where the mouse needs to be polled constantly for mouselook. My current solution is to use CGGetLastMouseDelta() to record any mouse movement once per run of the main loop. However I've got a little problem. The mouse movement won't be registered if the mouse is moved slowly. I've also tried using the glutPassiveMotionFunc() and have the same problem. When the mouse is moved faster the movement is registered fine.
Anyone know a better way to grab mouse input, or what could possibly be wrong.
Thanks.
I've got a problem. I'm currently working on a shooter where the mouse needs to be polled constantly for mouselook. My current solution is to use CGGetLastMouseDelta() to record any mouse movement once per run of the main loop. However I've got a little problem. The mouse movement won't be registered if the mouse is moved slowly. I've also tried using the glutPassiveMotionFunc() and have the same problem. When the mouse is moved faster the movement is registered fine.
Anyone know a better way to grab mouse input, or what could possibly be wrong.
Thanks.