Maes
I like big butts!

Posts: 10166
Registered: 07-06 |
Gez said:
I'd love it if the conversion code was somehow detailed and generalized so that one could convert mouse settings from one port to another. It could be a nice little stand-alone utility.
Such an utility would be made futile because most of the difference in mouse behavior is at the mouse hardware and OS driver level.
What most built-in OS functions report at the usual level that apps & games use them is the precise final x-y coordinate of the mouse on the screen. To detect relative motion, a simple dx/dy system can be used. At this point, there's no "acceleration" to speak of: at time #0 you read a value, at time #1 you read another, and by subtracting you figure out if you moved up/down or left/right. Doom uses a simple pixel-proportional system: if you keep moving the mouse at a fixed speed, you will get a proportional input (e.g. 1 pixel per frame, 4 pixels per frame etc.) If you accelerate and the tracking tech used supports different speeds, you'll see a proportional acceleration.
Now at the mouse driver level, it's another story. Different mouse technologies & designs support different types of motion detection and may lack a "natural" acceleration: e.g. some are only able to detect directions but not speeds: in that case, you need simulated acceleration, which sux.
|