[SDL] Why do I get so few points(SDL_MOUSEMOTION) when I move fast

Ryan C. Gordon icculus at icculus.org
Thu Sep 15 11:36:36 PDT 2016

On 9/13/16 11:11 AM, sgrsgsrg wrote:
> I think it's limited by what windows sends with its API


If you're getting _really_ imprecise mouse input, you probably need to 
run the SDL event queue more often (is there an SDL_Delay() or something 
in your program?), as mouse resolution on Windows is limited to how fast 
you check for more mouse events.

(Switching on relative mouse mode in SDL might help, as I assume Win32 
RAWINPUT isn't limited in this way.)


More information about the SDL mailing list