[SDL] Mouse acceleration?
hw
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
and SDL_GetRelativeMouseState.
Draw the cursor at position given by SDL_GetMouseState, and use
SDL_GetRelativeMouseState to figure out your acceleration effect.
hw
More information about the SDL
mailing list