This question already has an answer here:
I'm now developing a mini game, using SDL. When I use SDL1.2, the keyboard input event signal is well-caught.
However, if I use SDL2.0, the keyboard input event signal doesn't seem to be caught.
Also, even if I exit the program somehow(ex. set 10s and terminate) now the keyboard doesn't work at all.
Is it a bug in SDL2?