[SDL] SDL_GetKeyboardState bug ? Key stuck after window moved

sgrsgsrg thephanoo at gmail.com
Tue Sep 13 01:50:19 PDT 2016

Windows 10. 

SDL2.0.4, compiled under Visual Studio 2013

I currently tested only with the left & right keys. (SDL_SCANCODE_LEFT, SDL_SCANCODE_RIGHT)

To reproduce the problem :
- press a key
- while keeping this key pressed, move the window with your mouse
- release the key
- release the mouse click to stop moving the window
-> the key state for this key will be stuck forever

If you release the key after you stopped moving the window, the problem does not occurs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20160913/aaaa2988/attachment-0001.htm>

More information about the SDL mailing list