Key repeats

[Moderator: Please delete the dupe of this message from the queue. I sent it
from the wrong address…]

I have a while loop (stolen shamelessly from some example code, probably
showfont.c), that displays the key on the screen that you press, repeating if
you hold. That works fine, unless you press and hold one key, then press
another, and release the first. It will not repeat the second key. Any
ideas what I’m doing wrong? Code, stripped of irrelevant stuff, follows:

   while ( ! done )
    {
            switch (event.type)
            {
                    case SDL_MOUSEBUTTONDOWN:
			//paint text at pointer location
                            break;

                    case SDL_KEYDOWN:
                            key = event.key.keysym.sym;
                            if ( key == SDLK_q )
                            {
                                    done = true;
                                    break;
                            }
			//paint key at random place on screen

                            break;

                    case SDL_QUIT:
                            done = true;
                            break;

                    default:
                            break;
            }
    }

Oh, and regarding my last post about SDL_ttf on OS X, is there another list
that I could subscribe to, where I might have better luck finding someone
using that combination? Thanks!–
D.A.Bishop

[Moderator: Please delete the dupe of this message from the queue. I sent it
from the wrong address…]

Whoops, too late. :slight_smile:

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I have a while loop (stolen shamelessly from some example code, probably
showfont.c), that displays the key on the screen that you press, repeating if
you hold. That works fine, unless you press and hold one key, then press
another, and release the first. It will not repeat the second key. Any
ideas what I’m doing wrong? Code, stripped of irrelevant stuff, follows:

   while ( ! done )
    {
            switch (event.type)
            {
                    case SDL_MOUSEBUTTONDOWN:
			//paint text at pointer location
                            break;

                    case SDL_KEYDOWN:
                            key = event.key.keysym.sym;
                            if ( key == SDLK_q )
                            {
                                    done = true;
                                    break;
                            }
			//paint key at random place on screen

                            break;

                    case SDL_QUIT:
                            done = true;
                            break;

                    default:
                            break;
            }
    }

Oh, and regarding my last post about SDL_ttf on OS X, is there another list
that I could subscribe to, where I might have better luck finding someone
using that combination? Thanks!–
D.A.Bishop