Did update change MouseXSpeed and MouseYSpeed?

BlitzPlus Forums/BlitzPlus Programming/Did update change MouseXSpeed and MouseYSpeed?

So... what you're doing is:

Get the mouse speed since the last time you called the function.

At this point the mouse is still off center.

Then you move the mouse back to the center of the screen.

Then getting the mouse speed again.

What this second mouse speed call is telling you is how far the mouse moved since the last call to it. And the mouse has just been moved from some location on the screen, back to the center.

At first glance I thought what you were doing was nonsensical, since the mouse couldn't have moved very far since you called the mouse position command, but apparently the mouse position command doesn't reset the mouse speed command back to 0.

I have to ask though... you have two calls there. Which is the original? The one before repositioning the mouse in the center, or the one after? Have you considered that you could just put the one in the other place? Ie, if it was before, put it after? That could solve your problem too.

I don't know why it would not work both ways.