Hi all!
I have a weird problem with the keyboard (linux, SDL+sge library).
Sometimes, but not always, the return key is no longer responding when I
start my program for the second time (I can always run it once without a
problem). Usually in this case I get lots of “returns” in the shell from
which I started the program after leaving it. Then it is not sufficient to
kill the X server, I have to reboot the machine to get rid of this problem!
I have not yet figured out under which conditions this happens, it seems
rather random. The question is whether this is a problem with SDL or (maybe
a typical) mistake in my program.
More specific, my program looks as follows: I’m using DGA
(SDL_VIDEODRIVER=dga, flags are: SDL_HWSURFACE|SDL_FULLSCREEN
SDL_DOUBLEBUF) - this all works fine.
I have a global event loop and a timer that does the graphics update. The
keyboard event are read in the usual fashion:
while( SDL_PollEvent( &event ) ) {
switch( event.type ) {
case SDL_KEYDOWN:
if(event.key.keysym.sym == SDLK_ESCAPE) {
…
So nothing unusual here, I think. Anyone a clue?
Matthias