[SDL] Mouse acceleration?
hywhtvr at yahoo.com
Tue Jul 31 19:01:01 PDT 2001
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
Draw the cursor at position given by SDL_GetMouseState, and use
SDL_GetRelativeMouseState to figure out your acceleration effect.
More information about the SDL