Mouse acceleration?

Is there an easy way to `accelerate’ the mouse using SDL? Basically, it
would be cool if you could just set some number somewhere and then the
mouse would seem to move faster or slower…

Ryan Szypowski

ryan szypowski wrote:

Is there an easy way to `accelerate’ the mouse using SDL? Basically, it
would be cool if you could just set some number somewhere and then the
mouse would seem to move faster or slower…

Ryan Szypowski

Not sure about SDL having this support, but you could just hide the
cursor and make your own acceleratable cursor using SDL_GetMouseState
and SDL_GetRelativeMouseState.

Draw the cursor at position given by SDL_GetMouseState, and use
SDL_GetRelativeMouseState to figure out your acceleration effect.

hw