Page 1 of 1

Consistent mouse movement across machines / resolutions

Posted: Thu Apr 14, 2011 3:32 pm
by Gorbstein
I just upgraded from an ancient laptop with XP, to a faster machine with windows 7 and found that my game's mouse input is all messed up.

I can't quite pin down why, but small movements seem to not get picked up at all, and medium movements seem absolutely huge.

I'm using a 1 update per frame method, but I'm processing the mouse inputs with respect to the delta time each frame, before I pump the movements into my physics system. This worked across all previous XP setups I tried, even those with vastly different system speeds.

If I turn off the mouse acceleration in Win7 ("enhance pointer precision"), it returns to almost exactly the behaviour I had with XP.

Is there a way to read mouse info before OS acceleration is applied?

How do people here handle mouse input that works across different setups?

Cheers,

D