[SDL] keyboard events

Gerry JJ trick at icculus.org
Wed Sep 21 12:59:37 PDT 2005

Michael Whitman wrote:
> Is this normal? I was hope to move the sprite while the key was pressed down
> and stop it when the key was released.

It's perfectly normal, because you forgot to terminate your switch cases 
with break =).  The key down event falls through to the key up event.

- Gerry

More information about the SDL mailing list