I've done this before by giving each sprite a velocity. For each appropriate key down event, add the appropriate values to the appropriate velocity components. For each appropriate key up event, add the opposite values. Then in your drawing routine, update the sprite's position based on its velocity and redraw it.
In reply to Re: SDL Events hold key down
by chromatic
in thread SDL Events hold key down
by Treehunter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |