I tried to do something along the lines of:
Code:
SDL_WarpMouseInWindow(NULL, 400, 300);
SDL_FlushEvent(SDL_MOUSEMOTION);
but for some reason it is not working…
I can’t seem to work out how SDL_FlushEvent() works, it seems so random sometimes.
I tried to do something along the lines of:
Code:
SDL_WarpMouseInWindow(NULL, 400, 300);
SDL_FlushEvent(SDL_MOUSEMOTION);
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