SDL_GetKeyboardState bug ? Key stuck after window moved

"sgrsgsrg" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
I noticed a strange thing and wondered if it's a SDL bug : when my app have the focus, I press a key, then while keeping this key pressend, I move the window. Now, the state for this key is always stuck to 1, and I didnt found a way to stop it.
My event code isn't special, I just do :

int keystate = SDL_GetKeyboardState(NULL);

at the game initialization, then i retrieve the key state with keystate[code]...

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.