Avoiding SDL_WarpMouseInWindow() event generation

I tried to do something along the lines of:


SDL_WarpMouseInWindow(NULL, 400, 300);

but for some reason it is not working…

I can’t seem to work out how SDL_FlushEvent() works, it seems so random sometimes.

As I said in other post, I have problems using SDL_WarpMouseInWindow. I think that the use is different from 1.x , because it worked fine until migrating to SDL 2.0.1.
I do not know if it is a wrong interpretation of its use or a bug.------------------------
Armando Alaminos Bouza